mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
fix: Inappropriate empty check
I once again, assumed `true` is actually `false`.
This commit is contained in:
1 parent
968c0e236c
commit
8791a9b851
1 file changed
+1
-1
@@ -177,7 +177,7 @@ impl Service {
|
||||
self.db
|
||||
.userid_suspended
|
||||
.get(user_id)
|
||||
.map_ok(|val| val.is_empty())
|
||||
.map_ok(|val| !val.is_empty())
|
||||
.map_err(|_| err!(Request(NotFound("User does not exist."))))
|
||||
.await
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user