Просмотр исходного кода

remove unnecessary comments and logs

kaori-t 5 лет назад
Родитель
Сommit
7aecf0ec5c
1 измененных файлов с 0 добавлено и 12 удалено
  1. 0 12
      src/server/routes/apiv3/import.js

+ 0 - 12
src/server/routes/apiv3/import.js

@@ -319,27 +319,15 @@ module.exports = (crowi) => {
       return res.status(500).send({ status: 'ERROR' });
     }
     try {
-      console.log('bbb');
       // validate with meta.json
       importService.validate(data.meta);
     } catch {
-      console.log('ccc');
       const msg = 'the version of this growi and the growi that exported the data are not met'
       const varidationErr = 'versions-are-not-met';
       return res.apiv3Err(new ErrorV3(msg, varidationErr), 500);
     }
   });
 
-  // try {
-  //   importService.validate(meta);
-  // }
-  // catch (err) {
-  //   const varidationErr = 'versions-are-not-met';
-  //   logger.error(err);
-  //   this.adminEvent.emit('onErrorForImport', { message: err.message });
-  //   return res.apiv3Err(varidationErr, 500);
-  // }
-
   /**
    * @swagger
    *