From 009607ac1e08714466505249c92592b1710bffeb Mon Sep 17 00:00:00 2001 From: Quentin Albert Date: Fri, 24 Nov 2023 13:08:34 +0100 Subject: [PATCH] Add absenceManagersId --- src/models/user.mocks.ts | 3 +++ src/models/user.ts | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/models/user.mocks.ts b/src/models/user.mocks.ts index dbea156a..c677285f 100644 --- a/src/models/user.mocks.ts +++ b/src/models/user.mocks.ts @@ -5,10 +5,12 @@ export const createUserMocks = ({ count = 1, workTimeEditLockDays = 0, boss, + absenceManagersId, }: { count?: number; workTimeEditLockDays?: WorkTimeEditLock; boss?: number; + absenceManagersId?: Array; }) => Array.from({ length: count }, (_, index): User => { const userId = index; @@ -37,5 +39,6 @@ export const createUserMocks = ({ nonbusinessgroupsId: null, workTimeEditLockDays, boss: boss ?? null, + absenceManagersId: absenceManagersId ?? null, }; }); diff --git a/src/models/user.ts b/src/models/user.ts index 739c7949..eacfb98a 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -82,6 +82,10 @@ export type User = { * The user's team leader's / boss' id */ boss: number | null; + /** + * The ids of the co-workers that are allowed to manage the absences of this co-worker + */ + absenceManagersId: Array | null; }; export enum UserRole {