remove lock from guild updates
Some checks failed
commit-tag / commit-tag-image (push) Failing after 56s

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

View File

@ -18,8 +18,7 @@ export async function update_all_guilds() {
}
}).assert(ans.data)
const { db } = await c.getAsync(PG)
await db.begin(async (sql) => {
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)
@ -30,7 +29,6 @@ export async function update_all_guilds() {
prefix = EXCLUDED.prefix
`
}
})
}
export async function update_guild({