remove another lock
All checks were successful
commit-tag / commit-tag-image (push) Successful in 47s
All checks were successful
commit-tag / commit-tag-image (push) Successful in 47s
This commit is contained in:
parent
2306bd6d55
commit
25c4d6e490
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user