Yuki Takei пре 7 година
родитељ
комит
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();