Yuki Takei 7 лет назад
Родитель
Сommit
72b94f9683
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      src/server/models/attachment.js

+ 1 - 2
src/server/models/attachment.js

@@ -90,8 +90,7 @@ module.exports = function(crowi) {
   };
 
   attachmentSchema.statics.removeWithSubstanceById = async function(id) {
-    // retrieve data from DB
-    // because this instance fields are only partially populated
+    // retrieve data from DB to get a completely populated instance
     const attachment = await this.findById(id);
     await fileUploader.deleteFile(attachment);
     return await this.remove();