Skip to content

Commit b88e223

Browse files
committed
chore: Add PR's changes requested
1 parent e6b3c99 commit b88e223

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/Audit/AuditEventListener.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private function buildAuditContext(): AuditContext
101101
$user = $userRepo->getById($userId);
102102
}
103103

104-
//$ui = app()->bound('ui.context') ? app('ui.context') : [];
104+
$uiContext = []; // app()->bound('ui.context') ? app('ui.context') : [];
105105

106106
$req = request();
107107
$rawRoute = null;
@@ -121,8 +121,8 @@ private function buildAuditContext(): AuditContext
121121
userEmail: $user?->getEmail(),
122122
userFirstName: $user?->getFirstName(),
123123
userLastName: $user?->getLastName(),
124-
uiApp: $ui['app'] ?? null,
125-
uiFlow: $ui['flow'] ?? null,
124+
uiApp: $uiContext['app'] ?? null,
125+
uiFlow: $uiContext['flow'] ?? null,
126126
route: $req?->path(),
127127
httpMethod: $req?->method(),
128128
clientIp: $req?->ip(),

0 commit comments

Comments
 (0)