mirror of
https://github.com/grocy/grocy.git
synced 2025-08-21 04:43:32 +00:00
Fixed typos
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user