Skip to content

Commit 10c94d5

Browse files
committed
fix: don't error on deprecated shops include
1 parent 0b7446a commit 10c94d5

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

app/Http/Controllers/Api/Game/ItemController.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@ protected function getJsonColumnName(): string
5454
*/
5555
private function allowedIncludes(bool $includeRelatedItems = false): array
5656
{
57-
$includes = ItemResource::validIncludes();
57+
$includes = array_merge(
58+
ItemResource::validIncludes(),
59+
[
60+
AllowedInclude::custom('shops', new PassthroughInclude),
61+
AllowedInclude::custom('shops.items', new PassthroughInclude),
62+
]
63+
);
5864

5965
if ($includeRelatedItems) {
6066
$includes[] = AllowedInclude::custom('related_items', new PassthroughInclude);

0 commit comments

Comments
 (0)