Skip to content

Commit af9f1c3

Browse files
committed
fix: update role query in onboard-organization to use 'contains' for owner
- Modified the query in onboard-organization.ts to use 'contains' for the role field when searching for organization owners, improving flexibility in role matching.
1 parent 1558b63 commit af9f1c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/app/src/jobs/tasks/onboarding/onboard-organization.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ export const onboardOrganization = task({
4646
const owner = await db.member.findFirst({
4747
where: {
4848
organizationId: payload.organizationId,
49-
role: 'owner',
49+
role: {
50+
contains: 'owner',
51+
},
5052
},
5153
});
5254

0 commit comments

Comments
 (0)