zamis 5 lat temu
rodzic
commit
1d14861504

+ 0 - 2
src/server/service/file-uploader/gridfs.js

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

+ 0 - 4
src/server/service/file-uploader/local.js

@@ -30,10 +30,6 @@ module.exports = function(crowi) {
     return true;
   };
 
-  // lib.getFilePathOnStorage = function(attachment) {
-  //   return getFilePathOnStorage(attachment);
-  // };
-
   lib.deleteFile = async function(attachment) {
     const filePath = getFilePathOnStorage(attachment);