@@ -16,7 +16,7 @@ import {
1616 TextInputStyle ,
1717} from "discord.js" ;
1818import { logger } from "@lib" ;
19- import { GuildWithLogs , updateGuildConfig } from "@repo/database" ;
19+ import { GuildWithLogs , updateGuildLogs } from "@repo/database" ;
2020import { trimString , getCurrentValue , getUpdatePayload } from "@utils" ;
2121import { TFunction } from "i18next" ;
2222import { 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