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)
|
}).assert(ans.data)
|
||||||
|
|
||||||
const { sql } = await c.getAsync(PG)
|
const { sql } = await c.getAsync(PG)
|
||||||
for(const [guild_name, guild] of Object.entries(parsed)){
|
for(const [guild_name, guild] of Object.entries(parsed)){
|
||||||
await sql`insert into wynn_guild_info
|
await sql`insert into wynn_guild_info
|
||||||
(uid, name, prefix)
|
(uid, name, prefix)
|
||||||
values
|
values
|
||||||
(${guild.uuid}, ${guild_name}, ${guild.prefix})
|
(${guild.uuid}, ${guild_name}, ${guild.prefix})
|
||||||
on conflict (uid) do update set
|
on conflict (uid) do update set
|
||||||
name = EXCLUDED.name,
|
name = EXCLUDED.name,
|
||||||
prefix = EXCLUDED.prefix
|
prefix = EXCLUDED.prefix
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function update_guild({
|
export async function update_guild({
|
||||||
|
Loading…
Reference in New Issue
Block a user