From 6887cf3cca3c0e0e4651550a5f3c929a0059ab52 Mon Sep 17 00:00:00 2001 From: Srinivas-Saravanan Date: Fri, 3 Jan 2025 17:23:08 +0530 Subject: [PATCH] FIX_DASHBOARD_LAST_SENT_TIME --- app/Models/HomeModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/HomeModel.php b/app/Models/HomeModel.php index 46452fe1..59ee8a89 100755 --- a/app/Models/HomeModel.php +++ b/app/Models/HomeModel.php @@ -199,7 +199,7 @@ class HomeModel extends Model DATEDIFF(S.to_subscription, CURDATE()) as countdays, DATE_FORMAT(S.to_subscription, "%d/%m/%Y") as to_subscription_date_format, S.is_renew, - ( NHC.sent_time ) as email_last_notify_on,(select is_renew from subscription as sub where S.sub_id = sub.is_renew LIMIT 1)as renewed') + MAX( NHC.sent_time ) as email_last_notify_on,(select is_renew from subscription as sub where S.sub_id = sub.is_renew LIMIT 1)as renewed') ->where('S.to_subscription >=', $past30days) ->where('S.to_subscription <=', $last30days) ->where('S.isactive', 1)