Skip to content

Commit

Permalink
guild api fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragon1320 committed Jul 31, 2018
1 parent e5e60d5 commit e83f0dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web/routes/api/guilds.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ router.route("/@me/:discord_id").get(authUser, async (req, res) => {

const prefix = req.body.prefix === undefined ? null : req.body.prefix;
const log_channel_id = req.body.log_channel_id === undefined ? null : req.body.log_channel_id;
const log_events = req.body.log_events === undefined ? null : req.body.log_events;
const log_events = req.body.log_events === undefined ? [] : req.body.log_events;
const scripts = req.body.scripts === undefined ? [] : req.body.scripts;

// Check prefix.
Expand Down Expand Up @@ -506,7 +506,7 @@ router.route("/:discord_id").get(authAdmin, async (req, res) => {

const prefix = req.body.prefix === undefined ? null : req.body.prefix;
const log_channel_id = req.body.log_channel_id === undefined ? null : req.body.log_channel_id;
const log_events = req.body.log_events === undefined ? null : req.body.log_events;
const log_events = req.body.log_events === undefined ? [] : req.body.log_events;
const scripts = req.body.scripts === undefined ? [] : req.body.scripts;

// Check prefix.
Expand Down

0 comments on commit e83f0dd

Please sign in to comment.