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:
@@ -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