Skip to content

Commit

Permalink
fixup! feat: ai message summary
Browse files Browse the repository at this point in the history
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
  • Loading branch information
SebastianKrupinski committed Dec 17, 2024
1 parent 07678d0 commit 98490e8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/Listener/TaskProcessingListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,14 @@ public function handle(Event $event): void {
$this->logger->info('Error handling task processing event user id missing');
return;

Check warning on line 61 in lib/Listener/TaskProcessingListener.php

View check run for this annotation

Codecov / codecov/patch

lib/Listener/TaskProcessingListener.php#L60-L61

Added lines #L60 - L61 were not covered by tests
}
if ($task->getOutput() !== null && isset($task->getOutput()['output'])) {
$summary = (string)$task->getOutput()['output'];
if ($task->getOutput() !== null) {
$output = $task->getOutput();
if (isset($task->getOutput()['output'])) {
$summary = (string)$output['output'];

Check failure on line 66 in lib/Listener/TaskProcessingListener.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

PossiblyInvalidCast

lib/Listener/TaskProcessingListener.php:66:24: PossiblyInvalidCast: list<numeric|string> cannot be cast to string (see https://psalm.dev/190)

Check warning on line 66 in lib/Listener/TaskProcessingListener.php

View check run for this annotation

Codecov / codecov/patch

lib/Listener/TaskProcessingListener.php#L63-L66

Added lines #L63 - L66 were not covered by tests
} else {
$this->logger->info('Error handling task processing event output is invalid');
return;

Check warning on line 69 in lib/Listener/TaskProcessingListener.php

View check run for this annotation

Codecov / codecov/patch

lib/Listener/TaskProcessingListener.php#L68-L69

Added lines #L68 - L69 were not covered by tests
}
} else {
$this->logger->info('Error handling task processing event output missing');
return;

Check warning on line 73 in lib/Listener/TaskProcessingListener.php

View check run for this annotation

Codecov / codecov/patch

lib/Listener/TaskProcessingListener.php#L72-L73

Added lines #L72 - L73 were not covered by tests
Expand Down

0 comments on commit 98490e8

Please sign in to comment.