Add flag_new to /capi/batteries response. #532

This commit is contained in:
Korina Cordero 2021-01-25 06:50:46 +00:00
parent 3e75ddb618
commit 7ce0d1e930

View file

@ -38,6 +38,7 @@ class BatteryController extends APIController
'size' => $batt->getSize()->getID(),
'brand' => $batt->getBrand()->getID(),
'date_update' => $batt->getDateUpdate()->format('YmdHis'),
'flag_new' => $batt->isNew(),
];
}