diff --git a/app/Helpers/ChatHelperTrait.php b/app/Helpers/ChatHelperTrait.php index 349d4730..ed2ddaef 100644 --- a/app/Helpers/ChatHelperTrait.php +++ b/app/Helpers/ChatHelperTrait.php @@ -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, ]);