fix: update bluemine

This commit is contained in:
Julien Oculi 2024-01-15 21:09:49 +01:00
parent 66397eac5b
commit a8a3edf22d
2 changed files with 2 additions and 4 deletions

View file

@ -7,6 +7,6 @@
}, },
"imports": { "imports": {
"std:csv": "https://deno.land/std@0.212.0/csv/mod.ts", "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"
} }
} }

View file

@ -18,9 +18,7 @@ async function addUsersToGroup(redmine: Redmine, csv: CsvEntry[]) {
} }
} }
const { groups } = await redmine.unstableGroups.list() as unknown as { const { groups } = await redmine.unstableGroups.list()
groups: { id: number; name: string }[]
}
const { id } = groups.filter(({ name }) => name === 'entrepreneur-01-24')[0] const { id } = groups.filter(({ name }) => name === 'entrepreneur-01-24')[0]