Explorar o código

modify code comment

Yuki Takei %!s(int64=7) %!d(string=hai) anos
pai
achega
72b94f9683
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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) {
   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);
     const attachment = await this.findById(id);
     await fileUploader.deleteFile(attachment);
     await fileUploader.deleteFile(attachment);
     return await this.remove();
     return await this.remove();