diff --git a/app/Classes/Jobs/Commands/V2/EmailDoToVTV2CommandJob.php b/app/Classes/Jobs/Commands/V2/EmailDoToVTV2CommandJob.php index 2c4bf7d1..38d20860 100644 --- a/app/Classes/Jobs/Commands/V2/EmailDoToVTV2CommandJob.php +++ b/app/Classes/Jobs/Commands/V2/EmailDoToVTV2CommandJob.php @@ -60,15 +60,15 @@ class EmailDoToVTV2CommandJob implements ShouldQueue $zip->close(); //STEP 2: Upload the zip file to S3 - $filePathForS3 = 'collections/'.$zip_file; - Storage::disk('s3')->put($filePathForS3, file_get_contents($attachment)); + // $filePathForS3 = 'temp/'.$zip_file; + // Storage::disk('s3')->put($filePathForS3, file_get_contents($attachment)); - Log::info('DownloadBookingDocumentLogic finished processing files to zip count: '.count($bookings)); + // Log::info('DownloadBookingDocumentLogic finished processing files to zip count: '.count($bookings)); - $temporaryUrl = Storage::disk('s3')->temporaryUrl( - $filePathForS3, - Carbon::now()->addMinutes(10) - ); + // $temporaryUrl = Storage::disk('s3')->temporaryUrl( + // $filePathForS3, + // Carbon::now()->addMinutes(10) + // ); //STEP 3: Send Email Mail::raw( "Attention to VT Admin team:\r\n\r\nKindly refer to the attachment for our DAILY DO COMPILATION ".$startDate->format('d-m-Y')." - ".$endDate->format('d-m-Y').".\r\n\r\n**This is an automatically generated email – please do not reply to it. If you have any queries kindly contact our admin team through Wechat.\r\n\r\n\r\nCIEF WORLDWIDE SDN BHD", function($message) use ($attachment, $startDate, $endDate){ diff --git a/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php b/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php index 561357b6..54658308 100644 --- a/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php +++ b/app/Classes/Modules/Bookings/ControllersLogic/DownloadBookingDocumentLogic.php @@ -80,7 +80,7 @@ class DownloadBookingDocumentLogic } $zip->close(); - $filePathForS3 = 'collections/'.$zip_file; + $filePathForS3 = 'documents/collections/'.$zip_file; Storage::disk('s3')->put($filePathForS3, file_get_contents($attachment)); Log::info('DownloadBookingDocumentLogic finished processing files to zip count: '.count($bookings));