Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

Commit 4931b3a

Browse files
committed
fix(bot): update function name for guild logs handling
1 parent bde297e commit 4931b3a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

apps/bot/src/config-functions/utils.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
TextInputStyle,
1717
} from "discord.js";
1818
import { logger } from "@lib";
19-
import { GuildWithLogs, updateGuildConfig } from "@repo/database";
19+
import { GuildWithLogs, updateGuildLogs } from "@repo/database";
2020
import { trimString, getCurrentValue, getUpdatePayload } from "@utils";
2121
import { TFunction } from "i18next";
2222
import { DbConfigKey } from "@constants";
@@ -99,7 +99,7 @@ export async function dynamicChannel(
9999

100100
// 2. Update Database Safely
101101
const payload = getUpdatePayload(dbKey, newValue);
102-
await updateGuildConfig(messageComponent.guildId, payload);
102+
await updateGuildLogs(messageComponent.guildId, payload);
103103

104104
// 3. Reply
105105
const responseKey = newValue ? "set" : "unset";
@@ -159,7 +159,7 @@ export async function dynamicMessage(
159159
}
160160

161161
const payload = getUpdatePayload(dbKey, finalValue);
162-
await updateGuildConfig(messageComponent.guildId, payload);
162+
await updateGuildLogs(messageComponent.guildId, payload);
163163

164164
await messageComponent.editReply({ content: t(`${dbKey}.set`), components: [] });
165165
}
@@ -205,7 +205,7 @@ export async function dynamicRole(
205205
if (!newValue) {
206206
// Unset
207207
const payload = getUpdatePayload(dbKey, null);
208-
await updateGuildConfig(messageComponent.guildId, payload);
208+
await updateGuildLogs(messageComponent.guildId, payload);
209209
await messageComponent.editReply({ content: t(`${dbKey}.unset`), components: [] });
210210
} else {
211211
// Hierarchy Check
@@ -221,7 +221,7 @@ export async function dynamicRole(
221221

222222
// Set
223223
const payload = getUpdatePayload(dbKey, newValue);
224-
await updateGuildConfig(messageComponent.guildId, payload);
224+
await updateGuildLogs(messageComponent.guildId, payload);
225225

226226
await messageComponent.editReply({
227227
content: t(`${dbKey}.set`, {

0 commit comments

Comments
 (0)