From b4ab5d7ff3556f9a40c425afaa4dab5601b37027 Mon Sep 17 00:00:00 2001 From: Joe Biellik Date: Thu, 2 Jul 2020 20:11:08 +0100 Subject: [PATCH] Remove default expiry on model --- models/paste.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 });