Skip to content

Commit

Permalink
fix userid
Browse files Browse the repository at this point in the history
  • Loading branch information
Rello committed Aug 26, 2024
1 parent 8b8fa02 commit 3bbd3e0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/ContextChat/ContextChatManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 3bbd3e0

Please sign in to comment.