Skip to content

Commit

Permalink
Refactor globals export (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell authored Sep 26, 2024
1 parent f0c69a3 commit 995c09d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Commands/ExportGlobals.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ private function exportGlobals()
$this->withProgressBar($sets, function ($model) use ($variables) {
$global = GlobalSetFacade::make()
->handle($model->handle)
->title($model->title)
->save();
->title($model->title);

foreach ($variables->where('handle', $model->handle) as $localization) {
$global->makeLocalization($localization->locale)
->data($localization->data)
->origin($localization->origin ?? null)
->save();
->origin($localization->origin ?? null);
}

$global->save();
});

$this->newLine();
Expand Down

0 comments on commit 995c09d

Please sign in to comment.