Temp: log raw shift sample for field inspection

This commit is contained in:
jtricerolph 2026-07-23 10:55:54 +00:00
parent f9916cc3fd
commit 21391d4122

View file

@ -85,6 +85,7 @@ export async function syncActuals(from, to) {
const shifts = await wfFetchPaged(path) const shifts = await wfFetchPaged(path)
const deptNameMap = await getDeptNameMap() const deptNameMap = await getDeptNameMap()
if (shifts.length > 0) console.log('SHIFT_SAMPLE', JSON.stringify(shifts[0]))
const byDateDept = {} const byDateDept = {}
for (const s of shifts) { for (const s of shifts) {
const deptId = String(s.department_id) const deptId = String(s.department_id)