fix(api): feed push fails if channels is undefined (left blank in UI)

This commit is contained in:
Corban-Lee Jones 2025-05-01 00:04:29 +01:00
parent a856925ab4
commit ce51623637

View File

@ -39,7 +39,7 @@ export const post = async (request: Request, response: Response) => {
url: url, url: url,
guild_id: guildId, guild_id: guildId,
active: active === "on", active: active === "on",
channels: { create: formattedChannels } channels: channels !== undefined ? { create: formattedChannels } : channels
} }
}); });
} }