remove lock for leaderboard upates
Some checks failed
commit-tag / commit-tag-image (push) Has been cancelled

This commit is contained in:
a 2025-03-02 15:34:48 -06:00
parent e71183c2a1
commit 4f13f0f80d
No known key found for this signature in database
GPG Key ID: 2F22877AA4DFDADB

View File

@ -18,8 +18,7 @@ export async function update_guild_levels() {
level: "number", level: "number",
} }
}).assert(ans.data) }).assert(ans.data)
const { db } = await c.getAsync(PG) const { sql } = await c.getAsync(PG)
await db.begin(async (sql) => {
for(const [_, guild] of Object.entries(parsed)){ for(const [_, guild] of Object.entries(parsed)){
await sql`insert into wynn_guild_info await sql`insert into wynn_guild_info
(uid, name, prefix, xp, level) (uid, name, prefix, xp, level)
@ -30,5 +29,4 @@ export async function update_guild_levels() {
level = EXCLUDED.level level = EXCLUDED.level
` `
} }
})
} }