fix(api): feed push fails if channels is undefined (left blank in UI)
This commit is contained in:
parent
a856925ab4
commit
ce51623637
@ -39,7 +39,7 @@ export const post = async (request: Request, response: Response) => {
|
||||
url: url,
|
||||
guild_id: guildId,
|
||||
active: active === "on",
|
||||
channels: { create: formattedChannels }
|
||||
channels: channels !== undefined ? { create: formattedChannels } : channels
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user