|
@@ -40,11 +40,9 @@ module.exports = function(crowi) {
|
|
|
const fileId = attachmentFile._id;
|
|
const fileId = attachmentFile._id;
|
|
|
const fileName = attachmentFile.fileName;
|
|
const fileName = attachmentFile.fileName;
|
|
|
|
|
|
|
|
-
|
|
|
|
|
unorderChunkCollection.find({ files_id: fileId }).remove();
|
|
unorderChunkCollection.find({ files_id: fileId }).remove();
|
|
|
unorderFilesCollection.find({ fileName }).remove();
|
|
unorderFilesCollection.find({ fileName }).remove();
|
|
|
|
|
|
|
|
-
|
|
|
|
|
if (attachmentFile == null) {
|
|
if (attachmentFile == null) {
|
|
|
logger.warn(`Any AttachmentFile that relate to the Attachment (${attachment._id.toString()}) does not exist in GridFS`);
|
|
logger.warn(`Any AttachmentFile that relate to the Attachment (${attachment._id.toString()}) does not exist in GridFS`);
|
|
|
return;
|
|
return;
|