Skip to content

Commit f71bd95

Browse files
committed
Use external id for parent ids
1 parent 0cfcafe commit f71bd95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/External/Model/Cocktail.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ private function __construct(
3838
public array $utensils = [],
3939
public array $images = [],
4040
public array $ingredients = [],
41-
public ?int $parentCocktailId = null,
41+
public ?string $parentCocktailId = null,
4242
public ?int $year = null,
4343
) {
4444
}
@@ -69,7 +69,7 @@ public static function fromModel(CocktailModel $model, bool $useFileURI = false,
6969
$model->utensils->pluck('name')->toArray(),
7070
$images,
7171
$ingredients,
72-
$model->parent_cocktail_id,
72+
$model->parentCocktail?->getExternalId(),
7373
$model->year,
7474
);
7575
}

0 commit comments

Comments
 (0)