fix: Inappropriate empty check

I once again, assumed `true` is actually `false`.
This commit is contained in:
nexy7574 2025-06-28 21:19:37 +01:00 committed by Ellis Git
parent 968c0e236c
commit 8791a9b851

View file

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