We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b3106d commit 4dea6b3Copy full SHA for 4dea6b3
core/lib/server/user.ts
@@ -143,6 +143,7 @@ export const getSuggestedUsers = ({
143
eb
144
.selectFrom("community_memberships")
145
.selectAll("community_memberships")
146
+ .distinctOn("community_memberships.userId")
147
.whereRef("community_memberships.userId", "=", "users.id")
148
.where("community_memberships.communityId", "=", communityId!)
149
).as("member"),
0 commit comments