guild settings update no userid fix

master
masterhc 9 months ago
parent bbefbb07fc
commit 1bae803ff4

@ -81,8 +81,9 @@ exports.guildUpdate = (bot)=>
var aux = {}
aux[req.params.setting] = !original[req.params.setting]
const updated = await GuildM.findOneAndUpdate({gID:req.params.id}, aux)
const userid = await new DiscordAPI(req.headers.cookie, bot).getUserId();
const guild = await new DiscordAPI(req.headers.cookie, bot).getSpecificGuildDataForDash(req.params.id);
res.render('guildPopup.ejs', {guild})
res.render('guildPopup.ejs', {guild,userid})
}
}

Loading…
Cancel
Save