mirror of
https://github.com/grocy/grocy.git
synced 2025-04-30 10:05:45 +00:00
Fixed typos
This commit is contained in:
parent
7d4a9602ab
commit
605ceb1b19
@ -52,4 +52,4 @@
|
|||||||
|
|
||||||
### API
|
### API
|
||||||
|
|
||||||
- The Endpoint `/batteries` now also returns the corresponding battery object (as field/property `battery`)
|
- The endpoint `/batteries` now also returns the corresponding battery object (as field/property `battery`)
|
||||||
|
@ -80,7 +80,7 @@ class BatteriesController extends BaseController
|
|||||||
$usersService = $this->getUsersService();
|
$usersService = $this->getUsersService();
|
||||||
$nextXDays = $usersService->GetUserSettings(GROCY_USER_ID)['batteries_due_soon_days'];
|
$nextXDays = $usersService->GetUserSettings(GROCY_USER_ID)['batteries_due_soon_days'];
|
||||||
|
|
||||||
$batteries = $this->getDatabase()->batteries()->where('active = 1')->orderBy('name', 'COLLATE NOCASE');
|
$batteries = $this->getDatabase()->batteries()->where('active = 1');
|
||||||
$currentBatteries = $this->getBatteriesService()->GetCurrent();
|
$currentBatteries = $this->getBatteriesService()->GetCurrent();
|
||||||
foreach ($currentBatteries as $currentBattery)
|
foreach ($currentBatteries as $currentBattery)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user