Remove default expiry on model

pull/20/head
Joe Biellik 4 years ago
parent 341bf63422
commit b4ab5d7ff3

@ -4,7 +4,7 @@ const shortid = require('shortid');
const paste = new mongoose.Schema({ const paste = new mongoose.Schema({
_id: { type: String, default: shortid.generate }, _id: { type: String, default: shortid.generate },
paste: { type: String }, 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 timestamps: true
}); });

Loading…
Cancel
Save