itizawa %!s(int64=5) %!d(string=hai) anos
pai
achega
cab85b7e00
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/server/routes/attachment.js

+ 1 - 1
src/server/routes/attachment.js

@@ -241,7 +241,7 @@ module.exports = function(crowi, app) {
     // retrieve data from DB to get a completely populated instance
     // retrieve data from DB to get a completely populated instance
     const attachment = await Attachment.findById(attachmentId);
     const attachment = await Attachment.findById(attachmentId);
 
 
-    await fileUploadService.deleteFile(attachment);
+    await fileUploadService.fileUploader.deleteFile(attachment);
 
 
     return attachment.remove();
     return attachment.remove();
   }
   }