Skip to content

Commit

Permalink
Update TranslationController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
samehdoush committed Jul 20, 2023
1 parent bda2db7 commit 384bd55
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Http/Controllers/TranslationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,10 @@ public function updateMultiPhrase(Translation $translation): JsonResponse
continue;
}

$phrase = Phrase::where('uuid', $phrase['uuid'])->first();

$phrase->update([
$phraseNew = Phrase::where('uuid', $phrase['uuid'])->first();

$phraseNew->update([
'value' => $phrase['value'],
]);
}
Expand Down

0 comments on commit 384bd55

Please sign in to comment.