From d6325190df8e101bc792530cc20eece88cff538c Mon Sep 17 00:00:00 2001 From: Zach R Date: Sun, 8 Dec 2024 23:18:24 -0800 Subject: [PATCH] fix: js function recievers --- src/tasks/departments.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tasks/departments.ts b/src/tasks/departments.ts index 8e4db1c..c980fb5 100644 --- a/src/tasks/departments.ts +++ b/src/tasks/departments.ts @@ -96,7 +96,7 @@ export async function updateSlackUsergroups() { const managers = new Set() for (const manager_department of await getDepartmentManagers()) { const department = manager_department.dept - manager_department.managers.forEach(managers.add) + manager_department.managers.forEach((u) => managers.add(u)) const res = await syncUsergroup({ department_id: department.id, group_id: department.manager_slack_group,