|
|
@@ -250,7 +250,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.deleteFiles(attachment);
|
|
|
|
|
|
return attachment.remove();
|
|
|
}
|