From 25c4d6e490124ec2d04b97ed174295a4b851e671 Mon Sep 17 00:00:00 2001 From: a Date: Sun, 2 Mar 2025 15:40:35 -0600 Subject: [PATCH] remove another lock --- ts/src/activities/guild.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ts/src/activities/guild.ts b/ts/src/activities/guild.ts index c8febd2..6583555 100644 --- a/ts/src/activities/guild.ts +++ b/ts/src/activities/guild.ts @@ -19,16 +19,16 @@ export async function update_all_guilds() { }).assert(ans.data) const { sql } = await c.getAsync(PG) - for(const [guild_name, guild] of Object.entries(parsed)){ - await sql`insert into wynn_guild_info - (uid, name, prefix) - values - (${guild.uuid}, ${guild_name}, ${guild.prefix}) - on conflict (uid) do update set - name = EXCLUDED.name, - prefix = EXCLUDED.prefix - ` - } + for(const [guild_name, guild] of Object.entries(parsed)){ + await sql`insert into wynn_guild_info + (uid, name, prefix) + values + (${guild.uuid}, ${guild_name}, ${guild.prefix}) + on conflict (uid) do update set + name = EXCLUDED.name, + prefix = EXCLUDED.prefix + ` + } } export async function update_guild({