mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-02 03:45:46 +02:00
fix: Inappropriate empty check
I once again, assumed `true` is actually `false`.
This commit is contained in:
parent
968c0e236c
commit
8791a9b851
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ impl Service {
|
||||||
self.db
|
self.db
|
||||||
.userid_suspended
|
.userid_suspended
|
||||||
.get(user_id)
|
.get(user_id)
|
||||||
.map_ok(|val| val.is_empty())
|
.map_ok(|val| !val.is_empty())
|
||||||
.map_err(|_| err!(Request(NotFound("User does not exist."))))
|
.map_err(|_| err!(Request(NotFound("User does not exist."))))
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue