Fixed typos

This commit is contained in:
Bernd Bestel 2022-11-19 19:35:10 +01:00
parent 7d4a9602ab
commit 605ceb1b19
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 2 additions and 2 deletions

View File

@ -52,4 +52,4 @@
### 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`)

View File

@ -80,7 +80,7 @@ class BatteriesController extends BaseController
$usersService = $this->getUsersService();
$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();
foreach ($currentBatteries as $currentBattery)
{