|
|
@@ -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
|
|
|
*
|