zamis 5 лет назад
Родитель
Сommit
6abb9a1a89
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      src/server/service/file-uploader/gridfs.js

+ 1 - 3
src/server/service/file-uploader/gridfs.js

@@ -16,7 +16,6 @@ module.exports = function(crowi) {
     connection: mongoose.connection,
   });
   // get Collection instance of chunk
-
   // const unorderChunkCollection = chunkCollection.initializeUnorderedBulkOp();
 
   // create promisified method
@@ -32,6 +31,7 @@ module.exports = function(crowi) {
     if (attachment.filePath != null) { // backward compatibility for v3.3.x or below
       filenameValue = attachment.filePath;
     }
+
     const attachmentFile = await AttachmentFile.findOne({ filename: filenameValue });
 
     if (attachmentFile == null) {
@@ -40,8 +40,6 @@ module.exports = function(crowi) {
     }
 
     return AttachmentFile.promisifiedUnlink({ _id: attachmentFile._id });
-
-
   };
 
   /**