remove lock for leaderboard upates
Some checks failed
commit-tag / commit-tag-image (push) Has been cancelled
Some checks failed
commit-tag / commit-tag-image (push) Has been cancelled
This commit is contained in:
parent
e71183c2a1
commit
4f13f0f80d
@ -18,8 +18,7 @@ export async function update_guild_levels() {
|
||||
level: "number",
|
||||
}
|
||||
}).assert(ans.data)
|
||||
const { db } = await c.getAsync(PG)
|
||||
await db.begin(async (sql) => {
|
||||
const { sql } = await c.getAsync(PG)
|
||||
for(const [_, guild] of Object.entries(parsed)){
|
||||
await sql`insert into wynn_guild_info
|
||||
(uid, name, prefix, xp, level)
|
||||
@ -30,5 +29,4 @@ export async function update_guild_levels() {
|
||||
level = EXCLUDED.level
|
||||
`
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user