Skip to content

Commit 7976aba

Browse files
fix: move hardcode for workers
1 parent 13cff1e commit 7976aba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/Audit/AbstractAuditLogFormatter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ final public function setContext(AuditContext $ctx): void
3434

3535
protected function getUserInfo(): string
3636
{
37-
if (app()->runningInConsole()) {
38-
return 'Worker Job';
39-
}
4037
if (!$this->ctx) {
38+
if (app()->runningInConsole()) {
39+
return 'Worker Job';
40+
}
4141
return 'Unknown (unknown)';
4242
}
4343

0 commit comments

Comments
 (0)