Skip to content

Commit

Permalink
Add absenceManagersId
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Albert committed Nov 24, 2023
1 parent cee7da7 commit 009607a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/models/user.mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ export const createUserMocks = ({
count = 1,
workTimeEditLockDays = 0,
boss,
absenceManagersId,
}: {
count?: number;
workTimeEditLockDays?: WorkTimeEditLock;
boss?: number;
absenceManagersId?: Array<number>;
}) =>
Array.from({ length: count }, (_, index): User => {
const userId = index;
Expand Down Expand Up @@ -37,5 +39,6 @@ export const createUserMocks = ({
nonbusinessgroupsId: null,
workTimeEditLockDays,
boss: boss ?? null,
absenceManagersId: absenceManagersId ?? null,
};
});
4 changes: 4 additions & 0 deletions src/models/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<number> | null;
};

export enum UserRole {
Expand Down

0 comments on commit 009607a

Please sign in to comment.