update get users some more
This commit is contained in:
parent
47488cb7c5
commit
93579922d6
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ pub fn get_users(input: Form<FormGetUsers>) -> status::Custom<&'static str> {
|
||||||
.get_result::<i64>(connection)
|
.get_result::<i64>(connection)
|
||||||
.expect("Error querying user count");
|
.expect("Error querying user count");
|
||||||
|
|
||||||
let response = if amount < 1 {
|
let response = if results.is_empty() {
|
||||||
String::from("-1")
|
String::from("-1")
|
||||||
} else {
|
} else {
|
||||||
println!("{:?}", results);
|
println!("{:?}", results);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue