Laravel Vapor - Fix a problem on downloading Wallet Transaction History

This commit is contained in:
Dillon Ngo
2024-11-07 06:37:19 +08:00
parent c539edb710
commit 59ddc26a61
@@ -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();
}