UPDATE "OutboxMessage"
SET
  status = 'DEAD_LETTER',
  "lastError" = 'Manager topic delivery disabled by product decision',
  "lockedAt" = NULL,
  "updatedAt" = now()
WHERE kind = 'TELEGRAM_MANAGER_APPLICATION'
  AND status IN ('PENDING', 'FAILED', 'PROCESSING')
RETURNING id, kind, status, "createdAt";
