Fix komoditi notification sends notification day not in business
This commit is contained in:
@@ -85,6 +85,11 @@ class WhatsappUnsoldCommodityNotification extends Job
|
|||||||
$logger->info('End time is in the past');
|
$logger->info('End time is in the past');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (! $isLatestKomoditiToday) {
|
||||||
|
$logger->info('No commodity is bought today, so technically no komoditi is sold and notifications will not be sent');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if ($isLatestKomoditiToday && $isAllKomoditiSold) {
|
if ($isLatestKomoditiToday && $isAllKomoditiSold) {
|
||||||
$logger->info('All today komoditi is sold');
|
$logger->info('All today komoditi is sold');
|
||||||
|
|||||||
Reference in New Issue
Block a user