* /badge/update/perms {perms} param is now {badge_perms}
This makes the parameter follow the naming convention of badge_* * badges.id field now uses BIGINT's as intended * Typo in sql where 'badges' was incorrectly set to 'perms' -_-
This commit is contained in:
@@ -63,7 +63,7 @@ async fn badge_update(pool: &Pool, id: u64, query: &'static str, values: mysql_a
|
||||
pub async fn update_perms(pool: &Pool, id: u64, perms: u64) -> SqlResult<bool> {
|
||||
// Ok(None) if that badge was not registered anywhere
|
||||
// Ok(Some(Badge)) if that badge was registered
|
||||
let q = "UPDATE perms SET permissions = :perms WHERE id = :id";
|
||||
let q = "UPDATE badges SET permissions = :perms WHERE id = :id";
|
||||
let p = params!{"id" => id, "perms" => perms};
|
||||
return badge_update(pool, id, q, p).await;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user