fix update
All checks were successful
Build / Build (push) Successful in 43s
Build / docker (push) Successful in 16s

This commit is contained in:
파링 2026-01-06 01:31:53 +09:00
parent d583d1b32b
commit 474e350d77
Signed by: paring
SSH key fingerprint: SHA256:8uCHhCpn/gVOLEaTolmbub9kfM6XBxWkIWmHxUZoWWk

View file

@ -42,7 +42,7 @@ impl Handler {
.and_then(|x| x.value.clone())
.context("unable to get value text from input")?;
sqlx::query("insert into guilds (id, script) values ($1, $2) on conflict do update set script = excluded.script")
sqlx::query("insert into guilds (id, script) values ($1, $2) on conflict (id) do update set script = excluded.script")
.bind(value.as_str())
.bind(guild_id.to_string())
.execute(&self.db)