Skip to content

Commit

Permalink
3- getUsers query filtered
Browse files Browse the repository at this point in the history
  • Loading branch information
burakorkmez committed Mar 30, 2024
1 parent b39633e commit 9b39574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion convex/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const getUsers = query({
}

const users = await ctx.db.query("users").collect();
return users;
return users.filter((user) => user.tokenIdentifier !== identity.tokenIdentifier);
},
});

Expand Down

0 comments on commit 9b39574

Please sign in to comment.