Merge branch 'debtor' into 'development'

no file error

See merge request CIEFWorldwideSdnBhd/exchange-2.0!106
This commit is contained in:
Leong Chee Siong
2022-04-29 01:11:14 +00:00
2 changed files with 4 additions and 2 deletions
@@ -45,7 +45,9 @@ class DownloadBookingDocumentLogic
})->get();
if (!count($bookings)) throw new MalformedRequestException('No available file to download');
if (!count($bookings)) {
return response()->json(['no file to download']);
}
foreach ($bookings as $booking) {