Set Expiry Custom not default
This commit is contained in:
1 parent
a1f8ff4a19
commit
171ed935c3
1 file changed
+1
-1
+1
-1
@@ -11,7 +11,7 @@ const QuestSchema = new mongoose.Schema({
|
|||||||
},
|
},
|
||||||
expiry: {
|
expiry: {
|
||||||
type: Date,
|
type: Date,
|
||||||
default: Date.now
|
required: true
|
||||||
},
|
},
|
||||||
xp: {
|
xp: {
|
||||||
type: Number,
|
type: Number,
|
||||||
|
|||||||
Reference in new issue
Block a user