From 7a9a1ca5559d7483c2703772bfafee63cd75fa6c Mon Sep 17 00:00:00 2001 From: DEls Date: Fri, 11 Sep 2026 22:24:59 +0200 Subject: [PATCH] feat(sites): accept work_month_start_day on create/update --- src/app/api/sites/[id]/route.ts | 1 + src/app/api/sites/route.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/app/api/sites/[id]/route.ts b/src/app/api/sites/[id]/route.ts index d1d94d0..e312c75 100644 --- a/src/app/api/sites/[id]/route.ts +++ b/src/app/api/sites/[id]/route.ts @@ -37,6 +37,7 @@ export async function PATCH( "work_hours", "hours_per_week", "wages_hours_per_day", + "work_month_start_day", ] as const) { const v = body[k]; if (v === null || v === "") continue; diff --git a/src/app/api/sites/route.ts b/src/app/api/sites/route.ts index f0471c1..2a8004f 100644 --- a/src/app/api/sites/route.ts +++ b/src/app/api/sites/route.ts @@ -39,6 +39,7 @@ export async function POST(request: Request) { "hours_per_week", "wages_hours_per_day", "job_start_date", + "work_month_start_day", ]) { if (body[key] !== undefined && body[key] !== null && body[key] !== "") { payload[key] = body[key]; @@ -50,6 +51,7 @@ export async function POST(request: Request) { "work_hours", "hours_per_week", "wages_hours_per_day", + "work_month_start_day", ]) { if (typeof payload[key] === "string" && payload[key] === "") { delete payload[key];