Skip to content

Commit

Permalink
feat(chat): allow to retrieve all chats of all users
Browse files Browse the repository at this point in the history
  • Loading branch information
astappiev committed Mar 13, 2024
1 parent 0c6327c commit 7d9d4e9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ public static Uni<List<Chat>> listByUser(Token token, String user, String order,
Parameters params = Parameters.with("id", token.id);
Sort sort = PanacheUtils.createSort(order);

if (user == null) {
query += " AND user IS NULL";
} else {
if (user != null) {
params.and("user", user);
query += " AND user = :user";
}
Expand Down

0 comments on commit 7d9d4e9

Please sign in to comment.