Resolve "Add flag_new in API call response" #1428
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