Skip to content

Commit 544abf6

Browse files
janepiemarcelklehr
andcommitted
Apply suggestions from code review
Co-authored-by: Marcel Klehr <mklehr@gmx.net> Signed-off-by: janepie <49834966+janepie@users.noreply.github.com> Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
1 parent 829e13f commit 544abf6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/BackgroundJob/RegenerateOutdatedChatSummariesJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function __construct(
2020
private SessionSummaryService $sessionSummaryService,
2121
) {
2222
parent::__construct($timeFactory);
23-
$this->setInterval(60 * 10); // 10min
23+
$this->setInterval(60 * 60); // 1h
2424
}
2525
public function run($argument) {
2626
$userId = $argument['userId'];

lib/Service/SessionSummaryService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function getUserSessionSummaries(?string $userId): array {
110110

111111
/**
112112
* returns all remembered chats as summaries where available and whole chats where not
113-
* @return array<string>
113+
* @return list<string|null>
114114
*/
115115
public function getMemories(?string $userId): array {
116116
$memories = [];

0 commit comments

Comments
 (0)