From 3bbd3e050f64b0dd5895102ac476163ccf00cb47 Mon Sep 17 00:00:00 2001 From: Rello Date: Mon, 26 Aug 2024 22:57:31 +0200 Subject: [PATCH] fix userid --- lib/ContextChat/ContextChatManager.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/ContextChat/ContextChatManager.php b/lib/ContextChat/ContextChatManager.php index c20fef72..c4bb24e9 100644 --- a/lib/ContextChat/ContextChatManager.php +++ b/lib/ContextChat/ContextChatManager.php @@ -66,11 +66,14 @@ public function submitContent(int $datasetId): bool { $content .= 'The columns are ' . $columns . '. '; $content .= 'The data is: ' . $dataString; - $contentItem = new ContentItem($datasetId, 'report', + $contentItem = new ContentItem( + $datasetId, + 'report', $datasetMetadata['name'], - $content, 'Report', + $content, + 'Report', new \DateTime(), - [$this->userId] + [$datasetMetadata['user_id']] ); $contentItems = [$contentItem];