Alter SendWabot job -> change log message

This commit is contained in:
Amir
2023-05-08 09:35:40 +08:00
parent 2b3bcaf89e
commit a4b7b46f03
+1 -9
View File
@@ -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]);
}