Workforce: filter departments by configured location_id
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
9ea567955d
commit
3fae52c36b
2 changed files with 10 additions and 4 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue