|
@@ -97,7 +97,6 @@ module.exports = function(crowi) {
|
|
|
// retrieve data from DB to get a completely populated instance
|
|
// 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 attachment.remove();
|
|
return await attachment.remove();
|
|
|
};
|
|
};
|
|
|
|
|
|