remove lock from guild updates
Some checks failed
commit-tag / commit-tag-image (push) Failing after 56s
Some checks failed
commit-tag / commit-tag-image (push) Failing after 56s
This commit is contained in:
parent
4f13f0f80d
commit
2306bd6d55
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user