Compare commits
No commits in common. "93579922d6357cbc28bfca01a46aefaefadf0cef" and "ad9012cf645b257c7664fec3decfedf34a2791e4" have entirely different histories.
93579922d6
...
ad9012cf64
2 changed files with 2 additions and 1 deletions
|
@ -73,6 +73,7 @@ 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 results.is_empty() {
|
||||
let response = if amount < 1 {
|
||||
String::from("-1")
|
||||
} else {
|
||||
println!("{:?}", results);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue