mirror of
https://github.com/nx-bat/discordbot-ng.git
synced 2026-09-22 10:29:10 -04:00
[DB] Merge getGuildSettings & putGuild into GetOrCreateSettings (#9)
This commit is contained in:
@@ -205,7 +205,7 @@ async function handleGithubRelease(client: Client, req: Request, res: Response):
|
||||
|
||||
if (data.action != 'published' || data.repository.id != GITHUB_REPO_ID) return;
|
||||
|
||||
const settings = await Database.getGuildSettings(config.DISCORD_GUILD_ID!);
|
||||
const settings = await Database.getOrCreateSettings(config.DISCORD_GUILD_ID!);
|
||||
|
||||
if (!settings || !settings.github_release_channel) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user