From 1d4ed95d49c0b960fcf3f6b3d288b4e87af6b748 Mon Sep 17 00:00:00 2001 From: Igor Richter Date: Thu, 5 Oct 2023 12:50:37 +0200 Subject: [PATCH] fix assertion --- src/services/sync/strategies/consumerActions/ClassAction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/sync/strategies/consumerActions/ClassAction.js b/src/services/sync/strategies/consumerActions/ClassAction.js index 387b30f5a61..c688600375e 100644 --- a/src/services/sync/strategies/consumerActions/ClassAction.js +++ b/src/services/sync/strategies/consumerActions/ClassAction.js @@ -90,7 +90,7 @@ class ClassAction extends BaseConsumerAction { const teachers = []; const ldapDns = !Array.isArray(uniqueMembers) ? [uniqueMembers] : uniqueMembers; - if (uniqueMembers[0]) { + if (ldapDns[0]) { const users = await UserRepo.findByLdapDnsAndSchool(ldapDns, schoolId); users.forEach((user) => {