Skip to content

Commit

Permalink
Source should not duplicate key id
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Aug 12, 2024
1 parent 282cc6a commit 3a62c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Helpers/ChatHelperTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function skip(Source $source, string $key): bool

public function createSourceTask(Source $source, string $key): SourceTask
{
return SourceTask::create([
return SourceTask::updateOrCreate([
'source_id' => $source->id,
'task_key' => $key,
]);
Expand Down

0 comments on commit 3a62c02

Please sign in to comment.