🤖 Auto commit for release 'develop' on 2025-10-27

This commit is contained in:
JC5
2025-10-27 04:32:03 +01:00
parent e740fc57a6
commit 58d798df86
22 changed files with 27 additions and 35 deletions

View File

@@ -87,16 +87,16 @@ class AccountController extends Controller
'date' => $date,
'limit' => $limit,
]
= $request->attributes->all();
= $request->attributes->all();
$date = $date ?? today(config('app.timezone'));
$date ??= today(config('app.timezone'));
// set date to end-of-day for account balance. so it is at $date 23:59:59
$date->endOfDay();
$return = [];
$timer = Timer::getInstance();
$return = [];
$timer = Timer::getInstance();
$timer->start(sprintf('AC accounts "%s"', $query));
$result = $this->repository->searchAccount((string)$query, $types, $limit);
$allBalances = Steam::accountsBalancesOptimized($result, $date, $this->primaryCurrency, $this->convertToPrimary);
@@ -116,7 +116,7 @@ class AccountController extends Controller
$nameWithBalance = sprintf('%s (%s)', $account->name, Amount::formatAnything($useCurrency, $amount, false));
}
$return[] = [
$return[] = [
'id' => (string)$account->id,
'name' => $account->name,
'name_with_balance' => $nameWithBalance,