[DB] Merge getGuildSettings & putGuild into GetOrCreateSettings (#9)

This commit is contained in:
2026-08-19 15:44:26 +00:00
committed by GitHub
parent 9c91e18962
commit cb2348f89c
23 changed files with 74 additions and 130 deletions
+1 -1
View File
@@ -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;