diff --git a/app/Jobs/SendWabot.php b/app/Jobs/SendWabot.php index ffb59eac..1395e1d2 100644 --- a/app/Jobs/SendWabot.php +++ b/app/Jobs/SendWabot.php @@ -45,8 +45,6 @@ class SendWabot implements ShouldQueue */ public function handle() { - Artisan::call('queue:work', []); - // $user = Auth::user(); $caw = Cawangan::where('id', '=', $this->cawid)->first(); @@ -165,13 +163,7 @@ Sekian, terima kasih.'; ]); $res_json = $response->json(); - if ($res_json['status'] == "error") { - $message = "WABOT: " . $res_json['message'] . " - " . $res_json['data']; - Log::error($message); - } else { - $message = "WABOT: Success " . $res_json['data']['key']['remoteJid'] . " - " . $res_json['data']['message']['extendedTextMessage']['text']; - Log::info($message); - } + Log::info($res_json); } // dd($suratnotis['data_notisbid'][$index]); }