fix update
This commit is contained in:
parent
d583d1b32b
commit
474e350d77
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ impl Handler {
|
||||||
.and_then(|x| x.value.clone())
|
.and_then(|x| x.value.clone())
|
||||||
.context("unable to get value text from input")?;
|
.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(value.as_str())
|
||||||
.bind(guild_id.to_string())
|
.bind(guild_id.to_string())
|
||||||
.execute(&self.db)
|
.execute(&self.db)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue