mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 11:27:03 +00:00
Implemented tare weight handling (closes #132)
This commit is contained in:
@@ -27,7 +27,7 @@ class BatteriesApiController extends BaseApiController
|
||||
}
|
||||
|
||||
$chargeCycleId = $this->BatteriesService->TrackChargeCycle($args['batteryId'], $trackedTime);
|
||||
return $this->ApiResponse(array('charge_cycle_id' => $chargeCycleId));
|
||||
return $this->ApiResponse($this->Database->battery_charge_cycles($chargeCycleId));
|
||||
}
|
||||
catch (\Exception $ex)
|
||||
{
|
||||
|
Reference in New Issue
Block a user