From 90cd8fc2c4e9d45bd0242cddb13fbfdf74cadbcd Mon Sep 17 00:00:00 2001 From: Jonas Zeiger Date: Tue, 17 Sep 2024 10:42:44 +0200 Subject: [PATCH] Adapt to Personio API changes (#193) --- sync-timeoffs/SyncTimeOffs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync-timeoffs/SyncTimeOffs.js b/sync-timeoffs/SyncTimeOffs.js index 448fc6c..c5b3ada 100644 --- a/sync-timeoffs/SyncTimeOffs.js +++ b/sync-timeoffs/SyncTimeOffs.js @@ -968,7 +968,7 @@ function convertOutOfOfficeToTimeOff_(timeOffTypeConfig, employee, event, existi return undefined; } - const halfDaysAllowed = !!timeOffType.attributes?.half_day_requests_enabled; + const halfDaysAllowed = true; // field `half_day_requests_enabled` removed from absence-types from Sep. 16 const localTzOffsetStart = event.start.date ? Util.getNamedTimeZoneOffset(event.start.timeZone, new Date(event.start.date)) : undefined; const localTzOffsetEnd = event.end.date ? Util.getNamedTimeZoneOffset(event.end.timeZone, new Date(event.end.date)) : undefined; const startAt = PeopleTime.fromISO8601(event.start.dateTime || event.start.date, undefined, localTzOffsetStart)