Skip to content

Commit

Permalink
remove INTERVAL in SQL request
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Jul 27, 2023
1 parent ecc1482 commit 2a08e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function index(Request $request)
from
controls c1 left join controls c2 on c2.next_id=c1.id
left join domains on c1.domain_id=domains.id
where (c1.realisation_date is null) and (c1.plan_date < NOW() + INTERVAL 30 DAY)
where (c1.realisation_date is null) and (c1.plan_date < '" . Carbon::today()->addDays(30)->format('Y-m-d') . "')
order by c1.plan_date"
);

Expand Down

0 comments on commit 2a08e67

Please sign in to comment.