Преглед изворни кода

remove SECONDS_OF_CASH_EXPIRATION

itizawa пре 5 година
родитељ
комит
02ed84ee71
1 измењених фајлова са 0 додато и 4 уклоњено
  1. 0 4
      src/server/models/attachment.js

+ 0 - 4
src/server/models/attachment.js

@@ -13,8 +13,6 @@ const { addSeconds } = require('date-fns');
 const ObjectId = mongoose.Schema.Types.ObjectId;
 
 module.exports = function(crowi) {
-  const SECONDS_OF_CASH_EXPIRATION = 120;
-
   function generateFileHash(fileName) {
     const hash = require('crypto').createHash('md5');
     hash.update(`${fileName}_${Date.now()}`);
@@ -92,7 +90,5 @@ module.exports = function(crowi) {
     return this.save();
   };
 
-  attachmentSchema.statics.SECONDS_OF_CASH_EXPIRATION = SECONDS_OF_CASH_EXPIRATION;
-
   return mongoose.model('Attachment', attachmentSchema);
 };