|
|
|
@ -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})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|