* /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:
@@ -34,7 +34,7 @@ pub async fn new(p: &Pool, response: &mut Response<Body>, params: HashMap<String
|
||||
|
||||
pub async fn update_perms(p: &Pool, response: &mut Response<Body>, params: HashMap<String, String>) {
|
||||
let id = qs_param!(params, "badge_id", u64);
|
||||
let perms = qs_param!(params, "perms", u64);
|
||||
let perms = qs_param!(params, "badge_perms", u64);
|
||||
if let (Some(id), Some(perms)) = (id, perms) {
|
||||
match db::badges::update_perms(p, id, perms).await {
|
||||
// TODO: add rtc update here
|
||||
|
||||
Reference in New Issue
Block a user