itizawa 5 anni fa
parent
commit
cab85b7e00
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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
     const attachment = await Attachment.findById(attachmentId);
 
-    await fileUploadService.deleteFile(attachment);
+    await fileUploadService.fileUploader.deleteFile(attachment);
 
     return attachment.remove();
   }