fix: script setter
This commit is contained in:
parent
d154691c27
commit
d583d1b32b
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ impl Handler {
|
|||
.and_then(|x| x.value.clone())
|
||||
.context("unable to get value text from input")?;
|
||||
|
||||
sqlx::query("update guilds set script = $1 where id = $2")
|
||||
sqlx::query("insert into guilds (id, script) values ($1, $2) on conflict do update set script = excluded.script")
|
||||
.bind(value.as_str())
|
||||
.bind(guild_id.to_string())
|
||||
.execute(&self.db)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue