Workforce: filter departments by configured location_id

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-07 12:52:34 +00:00
parent 9ea567955d
commit 3fae52c36b
2 changed files with 10 additions and 4 deletions

View file

@ -79,7 +79,10 @@ export async function getEmployeeDepartments(wfUserId) {
export async function getSyncConfig() {
const creds = await getWorkforceCreds()
return { syncHours: parseFloat(creds.sync_hours ?? '6') }
return {
syncHours: parseFloat(creds.sync_hours ?? '6'),
locationId: creds.location_id ? String(creds.location_id) : null,
}
}
export function invalidateCache() {