Yuki Takei 6 سال پیش
والد
کامیت
b0c337336f
3فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 1 0
      src/server/routes/apiv3/import.js
  2. 1 0
      src/server/routes/apiv3/mongo.js
  3. 1 0
      src/server/service/export.js

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

@@ -53,6 +53,7 @@ module.exports = (crowi) => {
    * @return {object} document to be persisted
    */
   const overwriteParamsFn = async(Model, schema, req) => {
+    // FIXME: deprecated
     const { collectionName } = Model.collection;
 
     /* eslint-disable no-case-declarations */

+ 1 - 0
src/server/routes/apiv3/mongo.js

@@ -33,6 +33,7 @@ module.exports = (crowi) => {
    *                      type: string
    */
   router.get('/collections', async(req, res) => {
+    // FIXME: deprecated
     const collections = Object.values(crowi.models).map(model => model.collection.collectionName);
 
     // TODO: use res.apiv3

+ 1 - 0
src/server/service/export.js

@@ -100,6 +100,7 @@ class ExportService {
    * @return {string} path to zip file
    */
   async exportCollectionToJson(Model) {
+    // FIXME: deprecated
     const { collectionName } = Model.collection;
     const jsonFileToWrite = path.join(this.baseDir, `${collectionName}.json`);
     const writeStream = fs.createWriteStream(jsonFileToWrite, { encoding: this.growiBridgeService.getEncoding() });