Browse Source

activate commented lines for debug

Yuki Takei 6 years ago
parent
commit
9f2ed96cd6
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/server/service/import.js

+ 3 - 3
src/server/service/import.js

@@ -459,9 +459,9 @@ class ImportService {
    * @param {object} meta meta data from meta.json
    */
   validate(meta) {
-    // if (meta.version !== this.crowi.version) {
-    //   throw new Error('the version of this growi and the growi that exported the data are not met');
-    // }
+    if (meta.version !== this.crowi.version) {
+      throw new Error('the version of this growi and the growi that exported the data are not met');
+    }
 
     // TODO: check if all migrations are completed
     // - export: throw err if there are pending migrations