fixed nextcloud and wa api
This commit is contained in:
@@ -210,15 +210,8 @@ class FormOtherController extends Controller
|
||||
$phoneNumbers = array_unique($phoneNumbers);
|
||||
$receiver_ids = array_unique($receiver_ids);
|
||||
|
||||
try {
|
||||
$url = route('forms.other.view', $form->id);
|
||||
WhatsappHelper::newExpense($phoneNumbers, $expense_number, $url, $tanggal, $total, $name);
|
||||
} catch (\Exception $e) {
|
||||
// session()->flash('error', 'Failed to send whatsapp message.');
|
||||
AuditTrailHelper::AddAuditTrail('Error', 'Failed to send WhatsApp message at Form Other (' . $expense_number . ')');
|
||||
} finally {
|
||||
Log::error("Failed to send WhatsApp message");
|
||||
}
|
||||
$url = route('forms.other.view', $form->id);
|
||||
WhatsappHelper::newExpense($phoneNumbers, $expense_number, $url, $tanggal, $total, $name);
|
||||
|
||||
// Send bulk email
|
||||
foreach ($recipients as $recipient) {
|
||||
|
||||
Reference in New Issue
Block a user