We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2777120 commit 290dc03Copy full SHA for 290dc03
src/Events/Handlers/RelatedUsersStatisticsInterceptor.php
@@ -47,9 +47,13 @@ public function handle(TaskContract $taskContract): bool
47
$userId = $taskContract->getEventDTO()->getBaseEventDTO()->getUserId();
48
$temporaryUserId = $taskContract->getEventDTO()->getBaseEventDTO()->getTemporaryUserId();
49
50
+ if (empty($userId) || empty($temporaryUserId)) {
51
+ return true;
52
+ }
53
+
54
$this->relatedUsersStore::load($this->relatedUsersCacheRepository->getAll());
55
- $this->relatedUsersStore->get()->append($userId, $temporaryUserId);
56
+ $this->relatedUsersStore->get()->append((string)$userId, (string)$temporaryUserId);
57
58
$this->relatedUsersCacheManager->store(
59
$this->relatedUsersStore->get()->getAll()
0 commit comments