|
|
@@ -476,6 +476,14 @@ class ImportService {
|
|
|
// - import: throw err if there are pending migrations
|
|
|
}
|
|
|
|
|
|
+ // 追加
|
|
|
+ validateVersionforUploading(meta) {
|
|
|
+ if (meta.version !== this.crowi.version) {
|
|
|
+ const versionErr = new Error('the version of this growi and the growi that exported the data are not met');
|
|
|
+ return versionErr;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Delete all uploaded files
|
|
|
*/
|