Fix check for boolean instead of string
This commit is contained in:
@@ -39,7 +39,7 @@ class WhatsappUnsoldCommodityNotification extends Job
|
||||
$message = $settings->where('key', 'message')->first()->value;
|
||||
$isAllKomoditiSold = KomuditiPurchase::on('mysql7')->latest()->first()->unit_komuditi === 0;
|
||||
$isWabotCredentialNotComplete = env('WABOT_API') === null || env('WABOT_INSTANCES_ID') === null || env('WABOT_TOKEN_KEYS') === null;
|
||||
$isNotActiveJobServer = env('ACTIVE_JOB_SERVER') !== 'true';
|
||||
$isNotActiveJobServer = env('ACTIVE_JOB_SERVER') !== true;
|
||||
|
||||
$pic_key = 'pic_' . strtolower(Carbon::now()->englishDayOfWeek);
|
||||
$pic = json_decode($settings->where('key', $pic_key)->first()->value);
|
||||
|
||||
Reference in New Issue
Block a user