Skip to content

Commit 03a13ca

Browse files
committed
fix: apply copilot review suggestions
1 parent 7c42616 commit 03a13ca

3 files changed

Lines changed: 1 addition & 51 deletions

File tree

src/app/Packages/Domains/Test/QueryService/WorldHeritageQueryService_getByIdTest.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -53,30 +53,6 @@ private function refresh(): void
5353
}
5454
}
5555

56-
private function seedImages(): void
57-
{
58-
DB::table('world_heritage_site_images')->insert([
59-
[
60-
'world_heritage_site_id' => 1133,
61-
'url' => 'https://example.com/image1.jpg',
62-
'url_hash' => hash('sha256', 'https://example.com/image1.jpg'),
63-
'sort_order' => 0,
64-
'is_primary' => true,
65-
'created_at' => now(),
66-
'updated_at' => now(),
67-
],
68-
[
69-
'world_heritage_site_id' => 1133,
70-
'url' => 'https://example.com/image2.jpg',
71-
'url_hash' => hash('sha256', 'https://example.com/image2.jpg'),
72-
'sort_order' => 1,
73-
'is_primary' => false,
74-
'created_at' => now(),
75-
'updated_at' => now(),
76-
],
77-
]);
78-
}
79-
8056
private function arrayData(): array
8157
{
8258
return [

src/app/Packages/Domains/WorldHeritageReadQueryService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public function findByIdsPreserveOrder(array $ids): Collection
3333
'world_heritage_sites.latitude',
3434
'world_heritage_sites.longitude',
3535
'world_heritage_sites.short_description',
36+
'world_heritage_sites.unesco_site_url',
3637
])
3738
->with([
3839
'countries' => function ($q) {

src/app/Packages/Features/QueryUseCases/UseCase/GetWorldHeritageByIdsUseCase.php

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)