Laravel Vapor - Fix a problem on downloading Wallet Transaction History

This commit is contained in:
Dillon Ngo
2024-11-07 06:21:21 +08:00
parent 1a58f9c984
commit c539edb710
@@ -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(12);
$this->startDate = $startDate ? Carbon::parse($startDate)->startOfDay() : Carbon::now()->subMonths(6);
$this->endDate = $endDate ? Carbon::parse($endDate)->endOfDay() : Carbon::now();
}