Add support for tracking when an activity event is triggered from an API key

This commit is contained in:
DaneEveritt 2022-06-18 12:07:44 -04:00
parent 92c1c162af
commit 0520014c0f
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
7 changed files with 87 additions and 0 deletions

View file

@ -210,6 +210,7 @@ class ActivityLogService
'ip' => Request::ip(),
'batch_uuid' => $this->batch->uuid(),
'properties' => Collection::make([]),
'api_key_id' => $this->targetable->apiKeyId(),
]);
if ($subject = $this->targetable->subject()) {