diff --git a/services/backend/src/services/populations/shared.ts b/services/backend/src/services/populations/shared.ts index 1afe5876ed..dc32d0d129 100644 --- a/services/backend/src/services/populations/shared.ts +++ b/services/backend/src/services/populations/shared.ts @@ -459,7 +459,11 @@ export const formatStudentsForApi = async ( const getSubstitutions = async (codes: string[]) => { const courses = await Course.findAll({ attributes: ['code', 'substitutions'], - where: { code: codes }, + where: { + code: { + [Op.iLike]: { [Op.any]: codes }, + }, + }, raw: true, })