Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmartyrk committed Mar 14, 2024
1 parent 9d7a164 commit 0dc1bf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routes/api/group.js
Original file line number Diff line number Diff line change
Expand Up @@ -905,8 +905,9 @@ module.exports = function (app) {
to_jsonb(giu) as invite
FROM "GroupInviteUsers" giu
JOIN "Users" u ON u.id = giu."userId"
LEFT JOIN "GroupMemberUsers" gmu ON gmu."userId" = giu."userId"
LEFT JOIN "UserConnections" uc ON (uc."userId" = giu."userId" AND uc."connectionId" = 'esteid')
WHERE giu."groupId" = :groupId AND giu."deletedAt" IS NULL AND giu."expiresAt" > NOW()
WHERE giu."groupId" = :groupId AND giu."deletedAt" IS NULL AND giu."expiresAt" > NOW() AND gmu."userId" IS NULL
GROUP BY giu.id, giu."creatorId", giu.level, giu."groupId", u.id
`;

Expand Down

0 comments on commit 0dc1bf0

Please sign in to comment.