Clean up logging

This commit is contained in:
David Bomba 2021-11-09 21:59:52 +11:00
parent 6ec261775a
commit 075fe7a5e5
2 changed files with 2 additions and 5 deletions

View File

@ -522,9 +522,6 @@ class InvoiceController extends BaseController
$ids = request()->input('ids'); $ids = request()->input('ids');
nlog($action);
nlog($ids);
$invoices = Invoice::withTrashed()->whereIn('id', $this->transformKeys($ids))->company()->get(); $invoices = Invoice::withTrashed()->whereIn('id', $this->transformKeys($ids))->company()->get();
if (! $invoices) { if (! $invoices) {
@ -542,7 +539,7 @@ nlog($ids);
return response()->json(['message' => ctrans('text.access_denied')]); return response()->json(['message' => ctrans('text.access_denied')]);
} }
}); });
nlog("bulky");
ZipInvoices::dispatch($invoices, $invoices->first()->company, auth()->user()); ZipInvoices::dispatch($invoices, $invoices->first()->company, auth()->user());
return response()->json(['message' => ctrans('texts.sent_message')], 200); return response()->json(['message' => ctrans('texts.sent_message')], 200);

View File

@ -70,7 +70,7 @@ class ZipInvoices implements ShouldQueue
*/ */
public function handle() public function handle()
{nlog("bulky"); {
# create new zip object # create new zip object
$zip = new ZipArchive(); $zip = new ZipArchive();