Skip to content

Commit 724e282

Browse files
fixed bug on organisation code detection
1 parent 3dde633 commit 724e282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/util/recommender.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export async function courseInSameOrganisationAsUser(course: CourseData, organis
9191

9292
const organisations = await organisationWithGroupIdOf(course.groupIds)
9393
const orgCodes = organisations.map(o => o.code)
94-
if( organisationCode in orgCodes){
94+
if(orgCodes.includes(organisationCode)){
9595
return true
9696
}
9797

0 commit comments

Comments
 (0)