Skip to content

Commit 815b5cd

Browse files
committed
fix: simplify author logging in ProcessAggregatedEvents
1 parent 7891040 commit 815b5cd

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/Jobs/ProcessAggregatedEvents.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,12 @@ public function handle(): void
4141
/** @var array<string, mixed> $eventMessages */
4242
$eventMessages = Cache::pull($commentAggregationCacheKey, []);
4343

44-
if (empty($eventMessages)) {
45-
Cache::forget($commentAggregationCacheKey.'_author');
46-
47-
return;
48-
}
4944
Log::info('ProcessAggregatedEvents: Event message: '.json_encode($eventMessages));
5045
$message = $this->aggregateMessages($eventMessages);
5146
Cache::forget($commentAggregationCacheKey);
5247
$author = Cache::pull($commentAggregationCacheKey.'_author', '');
5348

54-
Log::info('ProcessAggregatedEvents: Author: '.json_encode($author));
49+
Log::info('ProcessAggregatedEvents: Author: '.$author);
5550
$message .= '\n\n'.view(
5651
'github-project::md.shared.author',
5752
['name' => $author['name'], 'html_url' => $author['html_url']]

0 commit comments

Comments
 (0)