feat: set roleId when inviting new members

This commit is contained in:
Henry
2026-01-29 21:07:50 +00:00
parent e3640542b3
commit 2cb7c55d13
2 changed files with 18 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ export const create = async (
workspaceId: number;
createdBy: string;
role: MemberRole;
roleId?: number | null;
status: MemberStatus;
},
) => {
@@ -39,6 +40,7 @@ export const create = async (
workspaceId: memberInput.workspaceId,
createdBy: memberInput.createdBy,
role: memberInput.role,
roleId: memberInput.roleId ?? null,
status: memberInput.status,
})
.returning({