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