mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-13 22:17:39 +02:00
fix: Inappropriate empty check
I once again, assumed `true` is actually `false`.
This commit is contained in:
parent
4e720060ed
commit
762f9e59f0
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