diff --git a/src/models/quest.js b/src/models/quest.js index 32e0ca2..d03280e 100644 --- a/src/models/quest.js +++ b/src/models/quest.js @@ -98,11 +98,11 @@ Quest.init({ }, pokestopName: { type: DataTypes.STRING(255), - allowNull: false, + allowNull: true, }, reward: { type: DataTypes.TEXT, - allowNull: false, + allowNull: true, }, city: { type: DataTypes.JSONTEXT, diff --git a/src/routes/api.js b/src/routes/api.js index 2a138f6..0117ccb 100644 --- a/src/routes/api.js +++ b/src/routes/api.js @@ -860,12 +860,12 @@ router.post('/quests/new', async (req, res) => { router.post('/quests/edit/:id', async (req, res) => { const id = req.params.id; - const { guild_id, reward, pokestop_name, city, location, } = req.body; + const { guild_id, /*reward,*/ pokestop_name, city, location, } = req.body; //const user_id = req.session.user_id; const quest = await Quest.getById(id); if (quest) { const areas = getAreas(guild_id, (city || '').split(',')); - quest.reward = reward; + //quest.reward = reward; quest.pokestopName = pokestop_name; quest.city = areas; quest.location = location || null; diff --git a/src/views/invasions/edit.mustache b/src/views/invasions/edit.mustache index 6eb41bb..0997ee9 100644 --- a/src/views/invasions/edit.mustache +++ b/src/views/invasions/edit.mustache @@ -13,7 +13,7 @@
{{Pokestop Name}} - + {{#pokestops}}