feat: order members by role and createdAt

This commit is contained in:
Henry
2026-01-28 21:45:19 +00:00
parent 303ca1409f
commit f210921d54
2 changed files with 7 additions and 1 deletions

View File

@@ -83,7 +83,8 @@ export const workspaceRouter = createTRPCRouter({
const isAdmin = userMember?.role === "admin";
// Show emails if user is admin OR workspace setting allows it
const shouldShowEmails = isAdmin || result.showEmailsToMembers === true;
const shouldShowEmails =
isAdmin || result.showEmailsToMembers === true;
// If emails should be hidden, filter them out
if (!shouldShowEmails) {