Add flag_new to /capi/batteries response. #532
This commit is contained in:
parent
3e75ddb618
commit
7ce0d1e930
1 changed files with 1 additions and 0 deletions
|
|
@ -38,6 +38,7 @@ class BatteryController extends APIController
|
||||||
'size' => $batt->getSize()->getID(),
|
'size' => $batt->getSize()->getID(),
|
||||||
'brand' => $batt->getBrand()->getID(),
|
'brand' => $batt->getBrand()->getID(),
|
||||||
'date_update' => $batt->getDateUpdate()->format('YmdHis'),
|
'date_update' => $batt->getDateUpdate()->format('YmdHis'),
|
||||||
|
'flag_new' => $batt->isNew(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue