mirror of
https://github.com/warmbly/warmbly.git
synced 2026-08-19 16:01:16 +00:00
2aefb7da02
When the dead-worker job reassigns email accounts from a worker whose heartbeat expired, write a row into admin_audit_log so the dashboard's audit viewer surfaces these system actions alongside admin-driven ones. admin_user_id is uuid.Nil (the platform identity), so admins searching the log can distinguish "system did this" from "an admin did this" by filtering on that ID. Details include the replacement worker, account count, and reason. JobsService gets an optional AdminRepo dep. Nil disables logging — keeps the contract loose for any other call site that doesn't have one.