Compare commits
2 commits
ad9012cf64
...
93579922d6
Author | SHA1 | Date | |
---|---|---|---|
93579922d6 | |||
47488cb7c5 |
2 changed files with 1 additions and 2 deletions
|
@ -73,7 +73,6 @@ pub struct User {
|
|||
pub is_banned_upload: i32
|
||||
}
|
||||
|
||||
// TODO: err uhh we might need to make changes because green users 😀😀😀 im gonna commit suicide
|
||||
#[derive(Insertable, Deserialize)]
|
||||
#[diesel(table_name = users)]
|
||||
pub struct NewUser {
|
||||
|
|
|
@ -85,7 +85,7 @@ pub fn get_users(input: Form<FormGetUsers>) -> status::Custom<&'static str> {
|
|||
.get_result::<i64>(connection)
|
||||
.expect("Error querying user count");
|
||||
|
||||
let response = if amount < 1 {
|
||||
let response = if results.is_empty() {
|
||||
String::from("-1")
|
||||
} else {
|
||||
println!("{:?}", results);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue