Skip to content

Commit

Permalink
fix: Incorrect absence and user types
Browse files Browse the repository at this point in the history
- Absence status is always present
- Teams-Id can also be a number
  • Loading branch information
jhnns authored Jul 19, 2023
2 parents 6f36196 + 5feb6b8 commit 91a00b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/models/absence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ type CommonAbsence = {
dateUntil: string; // | null (as stated in the docs) doesn't seem to be correct
/**
* Status of the absence.
* Only with access rights for absence administration or in case of own absences
*/
status?: AbsenceStatus;
status: AbsenceStatus;
/**
* Type of the absence.
* Only with access rights for absence administration or in case of own absences
Expand Down
2 changes: 1 addition & 1 deletion src/models/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export type User = {
| typeof NO_WORKTIME_REGULATIONS_ID_FOR_USER
| null;
/** The co-worker's team id */
teamsId: null;
teamsId: number | null;
/**
* ID of the co-worker's nonbusiness group
* - "0" if the co-worker has no nonbusiness group
Expand Down

0 comments on commit 91a00b8

Please sign in to comment.