Adds custom expiry date to quest
This commit is contained in:
1 parent
171ed935c3
commit
94b496bf66
1 file changed
+2
-1
+2
-1
@@ -54,7 +54,7 @@ router.get('/edit', (req, res) => res.render('edit'));
|
|||||||
|
|
||||||
// Create Quest
|
// Create Quest
|
||||||
router.post('/createQuest', (req, res, next) => {
|
router.post('/createQuest', (req, res, next) => {
|
||||||
const { title, amount, instructions, campaign} = req.body;
|
const { title, amount, expiry, instructions, campaign} = req.body;
|
||||||
|
|
||||||
let errors = [];
|
let errors = [];
|
||||||
|
|
||||||
@@ -77,6 +77,7 @@ router.post('/createQuest', (req, res, next) => {
|
|||||||
const newQuest = new Quest({
|
const newQuest = new Quest({
|
||||||
title: title,
|
title: title,
|
||||||
campaign: campaign,
|
campaign: campaign,
|
||||||
|
expiry: expiry,
|
||||||
xp: amount,
|
xp: amount,
|
||||||
instruction: instructions
|
instruction: instructions
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user