From a8a3edf22d9c6f636e144628f9b24b9ce3583401 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Mon, 15 Jan 2024 21:09:49 +0100 Subject: [PATCH] fix: update bluemine --- deno.json | 2 +- src/append_to_group.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/deno.json b/deno.json index 9022fef..508525f 100644 --- a/deno.json +++ b/deno.json @@ -7,6 +7,6 @@ }, "imports": { "std:csv": "https://deno.land/std@0.212.0/csv/mod.ts", - "bluemine": "https://deno.land/x/bluemine@0.1.3/mod.ts" + "bluemine": "https://deno.land/x/bluemine@0.1.4/mod.ts" } } diff --git a/src/append_to_group.ts b/src/append_to_group.ts index 3c70d9a..5f512ff 100644 --- a/src/append_to_group.ts +++ b/src/append_to_group.ts @@ -18,9 +18,7 @@ async function addUsersToGroup(redmine: Redmine, csv: CsvEntry[]) { } } - const { groups } = await redmine.unstableGroups.list() as unknown as { - groups: { id: number; name: string }[] - } + const { groups } = await redmine.unstableGroups.list() const { id } = groups.filter(({ name }) => name === 'entrepreneur-01-24')[0]