Commit Graph

7 Commits (main)

Author SHA1 Message Date
SYED MUSTUFA AHMED NAQVI b9142bf978 fix: improve attendance sync timestamp persistence and cleanup safety
- Trim machine lookup keys and fall back to machine ID
- Skip device cleanup when the last sync timestamp fails to save
- Improve sync logging and normalize event timestamps
2026-09-16 17:43:21 +05:00
SYED MUSTUFA AHMED NAQVI 8939e9d49c feat: route Terry machine punches to terry_attendance_log
Add TerryAttendanceMachineIps config and persist punches from those IPs directly to terry_attendance_log without worker_type lookup. Add employee worker_type lookup and persist outcomes for unmapped/unsupported workers on non-Terry machines.
2026-09-11 15:07:54 +05:00
SYED MUSTUFA AHMED NAQVI 9605c370ae feat: resolve sync targets from DB and harden ISAPI connectivity probes
Add TargetDevice helpers to look up sync machines by IP/machine_id without site-scope filtering, and probe multiple ISAPI paths so 404 on one endpoint is not treated as offline. Include repository lookups used by sync targets.
2026-09-11 15:03:55 +05:00
SYED MUSTUFA AHMED NAQVI e5a3689434 Skip existing face templates and persist updated_by on user upsert
Do not rewrite active non-empty face templates already in DB. On machine-user upsert, set is_deleted=0 and write updated_by.
2026-08-05 15:37:58 +05:00
SYED MUSTUFA AHMED NAQVI 962a2470c2 Require updatedBy on attendance_machine_user upsert API
Extend UpsertMachineUser so callers must supply who updated the row, matching MarkDeleted.
2026-08-05 15:37:03 +05:00
SYED MUSTUFA AHMED NAQVI 9ae838888a Fix attendance_log inserts and extend face-template/user deletion DB APIs
Replace REPLACE/empty ac_no inserts with guarded InsertAttendance (avoids generated ac_no_int cast failures); extend face-template upsert metadata and pending-deletion user queries for machine-scoped delete requests.
2026-07-30 13:19:28 +05:00
SYED MUSTUFA AHMED NAQVI 93b2bf9bd7 Add MySQL-backed HRMS repositories and DB integration configuration.
1) Introduces DB connectivity, repository abstractions, and new config flags/env overrides.

2) Keeps architecture clean and isolated.
2026-04-14 17:12:10 +05:00