Skip to content

Commit

Permalink
Mark where we want transactions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jameswilddev committed Sep 9, 2022
1 parent 5e93e3f commit 5ea0264
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion laravel/src/SyncApiCollectionMediaCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function (string $modelUuid, string $mediaUuid) {

$implementation = function (string $modelUuid, string $mediaUuid) {
$scopeName = $this->syncApiCollection->scopeName;

// TODO transaction
$model = $this
->syncApiCollection
->modelClass::$scopeName()
Expand Down Expand Up @@ -217,6 +217,7 @@ function (string $modelUuid, string $mediaUuid) {
}

if ($this->syncCapabilities & SyncCapability::DELETE) {
// TODO transaction
Route::delete(
$this->routeFragment . '/{modelUuid}/' . $this->generateKebabCasedMediaCollectionName() . '/{mediaUuid}',
function (string $modelUuid, string $mediaUuid) {
Expand Down

0 comments on commit 5ea0264

Please sign in to comment.