Skip to content

Commit

Permalink
[TM-1585] add condition to filter approved sites
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarLima1 committed Dec 26, 2024
1 parent ad1d6a8 commit f242553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/V2/Projects/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ public function approvedSitePolygons(): HasManyThrough
'id',
'uuid'
)
->whereHas('site', function($query) {
->whereHas('site', function ($query) {
$query->whereIn('status', Site::$approvedStatuses);
})
->active();
Expand Down

0 comments on commit f242553

Please sign in to comment.