Skip to content

Commit dffefe4

Browse files
committed
fix: correct error message for multiple current roles in mergeRoles func
Signed-off-by: Yeganathan S <63534555+skwowet@users.noreply.github.com>
1 parent 25d22c5 commit dffefe4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/libs/data-access-layer/src/members/organizations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ export async function mergeRoles(
10281028

10291029
queueRoleRemoval(memberOrganization)
10301030
} else {
1031-
throw new Error(`Member ${memberOrganization.memberId} has more than one current roles.`)
1031+
throw new Error(`Member ${memberOrganization.memberId} has more than one current role.`)
10321032
}
10331033
} else if (memberOrganization.dateStart === null && memberOrganization.dateEnd !== null) {
10341034
throw new Error(`Member organization with dateEnd and without dateStart!`)

0 commit comments

Comments
 (0)