MCPcopy Create free account
hub / github.com/adisreyaj/compito / userMapToArray

Function userMapToArray

libs/web/ui/src/util/map-users-array.util.ts:3–10  ·  view source on GitHub ↗
(map: Map<any, User>)

Source from the content-addressed store, hash-verified

1import { User } from '@prisma/client';
2
3export const userMapToArray = (map: Map<any, User>) => {
4 return [...map.values()].map(({ email, image, firstName }) => {
5 return {
6 image: image ?? `https://avatar.tobi.sh/${email}`,
7 name: firstName,
8 };
9 });
10};

Callers 4

ngOnInitMethod · 0.90
updateAssigneesMethod · 0.90
ngOnInitMethod · 0.90
handleUserSelectEventMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected