proper query for invites::update hehexd
This commit is contained in:
parent
b673fc6ca1
commit
e616a160fa
@ -45,7 +45,8 @@ impl FromDB<Invite> for Invite {
|
||||
|
||||
async fn update(p: &Pool, row: Self) -> Response<Self> {
|
||||
let q = r#"UPDATE invites
|
||||
SET id = :id, uses = :uses, expires: :exp
|
||||
SET uses = :uses, expires: :exp
|
||||
WHERE id = :id
|
||||
"#;
|
||||
// forcibly udpate even if theres nothing there
|
||||
// this way we avoid doing an extra network hit
|
||||
|
Loading…
Reference in New Issue
Block a user