From 59ddc26a619af0b4cb8f9dfd912d509ec1067174 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Thu, 7 Nov 2024 06:37:19 +0800 Subject: [PATCH] Laravel Vapor - Fix a problem on downloading Wallet Transaction History --- .../Services/ExportsCustomersWalletTransactionHistory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/Exports/Services/ExportsCustomersWalletTransactionHistory.php b/app/Classes/Modules/Exports/Services/ExportsCustomersWalletTransactionHistory.php index 20323b00..cb328f46 100644 --- a/app/Classes/Modules/Exports/Services/ExportsCustomersWalletTransactionHistory.php +++ b/app/Classes/Modules/Exports/Services/ExportsCustomersWalletTransactionHistory.php @@ -26,7 +26,7 @@ class ExportsCustomersWalletTransactionHistory implements FromQuery, WithHeading public function __construct(Request $request, $startDate = null, $endDate = null) { $this->request = $request; - $this->startDate = $startDate ? Carbon::parse($startDate)->startOfDay() : Carbon::now()->subMonths(6); + $this->startDate = $startDate ? Carbon::parse($startDate)->startOfDay() : Carbon::now()->subMonths(3); $this->endDate = $endDate ? Carbon::parse($endDate)->endOfDay() : Carbon::now(); }