Alter SendWabot job -> change log message
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user