diff --git a/models/paste.js b/models/paste.js index 2354857..bf77c26 100644 --- a/models/paste.js +++ b/models/paste.js @@ -4,7 +4,7 @@ const shortid = require('shortid'); const paste = new mongoose.Schema({ _id: { type: String, default: shortid.generate }, paste: { type: String }, - expiresAt: { type: Date, expires: 0, default: new Date(Date.now() + 1000 * 60 * 60 * 24 * 7) } + expiresAt: { type: Date, expires: 0 } }, { timestamps: true });