diff --git a/services/kanao-gateway/src/Listeners/Caches/Guilds/GuildCreateListener.ts b/services/kanao-gateway/src/Listeners/Caches/Guilds/GuildCreateListener.ts index 8d448c6b..04caec4b 100644 --- a/services/kanao-gateway/src/Listeners/Caches/Guilds/GuildCreateListener.ts +++ b/services/kanao-gateway/src/Listeners/Caches/Guilds/GuildCreateListener.ts @@ -106,7 +106,7 @@ export class GuildCreateListener extends Listener { for (const role of payload.data.d.roles) { if (ops.length >= 500 || ops.length > 0) { this.logger.debug({ ops: ops.length }, "Executing SQL"); - this.logger.debug(ops.join(";").toString(), "Executed SQL"); + this.logger.debug(JSON.stringify(ops.join(";"))); await this.store.drizzle.execute(sql`${ops.join(";")}`); ops = []; } @@ -140,7 +140,7 @@ export class GuildCreateListener extends Listener { if (member.user !== undefined) { if (ops.length >= 500 || ops.length > 0) { this.logger.debug({ ops: ops.length }, "Executing SQL"); - this.logger.debug(ops.join(";").toString(), "Executed SQL"); + this.logger.debug(JSON.stringify(ops.join(";"))); await this.store.drizzle.execute(sql`${ops.join(";")}`); ops = []; } @@ -180,7 +180,7 @@ export class GuildCreateListener extends Listener { if (member.user !== undefined) { if (ops.length >= 500 || ops.length > 0) { this.logger.debug({ ops: ops.length }, "Executing SQL"); - this.logger.debug(ops.join(";").toString(), "Executed SQL"); + this.logger.debug(JSON.stringify(ops.join(";"))); await this.store.drizzle.execute(sql`${ops.join(";")}`); ops = []; } @@ -233,7 +233,7 @@ export class GuildCreateListener extends Listener { for (const channel of payload.data.d.channels) { if (ops.length >= 500 || ops.length > 0) { this.logger.debug({ ops: ops.length }, "Executing SQL"); - this.logger.debug(ops.join(";").toString(), "Executed SQL"); + this.logger.debug(JSON.stringify(ops.join(";"))); await this.store.drizzle.execute(sql`${ops.join(";")}`); ops = []; } @@ -272,7 +272,7 @@ export class GuildCreateListener extends Listener { if (ops.length >= 500 || ops.length > 0) { this.logger.debug({ ops: ops.length }, "Executing SQL"); - this.logger.debug(ops.join(";").toString(), "Executed SQL"); + this.logger.debug(JSON.stringify(ops.join(";"))); await this.store.drizzle.execute(sql`${ops.join(";")}`); ops = []; }