From 77c21dd292fba1693fbeb9bc386645d0ec084101 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Mon, 15 Jan 2024 22:11:04 +0100 Subject: [PATCH] fix: allow custom group name --- src/append_to_group.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/append_to_group.ts b/src/append_to_group.ts index 158fd1b..83f5aee 100644 --- a/src/append_to_group.ts +++ b/src/append_to_group.ts @@ -26,7 +26,7 @@ async function addUsersToGroup( const { groups } = await redmine.unstableGroups.list() - const { id } = groups.filter(({ name }) => name === 'entrepreneur-01-24')[0] + const { id } = groups.filter(({ name }) => name === groupName)[0] for (const user of users) { try {