Skip to content

Commit d57a0fa

Browse files
committed
Remove temporary reuse_prototype debug fields
1 parent 045fe2b commit d57a0fa

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

app/Http/Resources/PublicWikiResource.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ public function toArray($request): array {
1717
'wiki_site_stats' => $this->wikiSiteStats,
1818
'logo_url' => $logoSetting ? $logoSetting->value : null,
1919

20-
// TODO: delete these three fields before merging; here to easily prove the `reuse_prototype` logic works
21-
'test_purpose' => $this->wikiLatestProfile ? $this->wikiLatestProfile->purpose : null,
22-
'test_temporality' => $this->wikiLatestProfile ? $this->wikiLatestProfile->temporality : null,
23-
'test_audience' => $this->wikiLatestProfile ? $this->wikiLatestProfile->audience : null,
24-
2520
// Checking relation load state before reading it to avoid N+1 query
2621
// This relies on the controller to eager load `wikiLatestProfile` relationship
2722
'reuse_prototype' => $this->relationLoaded('wikiLatestProfile')

0 commit comments

Comments
 (0)