0334539d02
portalAudit middleware calls db.insert(impersonationAuditLogs) on every portal request. The waitlist test mock was missing this export, causing insertedValues to be double-counted (once for waitlist entry, once for audit log). Added impersonationAuditLogs proxy and separate insertedAuditValues tracking to isolate audit log inserts from business-logic inserts. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>