feat: simplify OTA updates with timestamp
This commit is contained in:
@@ -189,6 +189,9 @@ router.put('/config', async (req, res) => {
|
||||
if (typeof incoming.force_update === 'boolean') {
|
||||
cfg.force_update = incoming.force_update;
|
||||
}
|
||||
if (incoming.update_timestamp) {
|
||||
cfg.update_timestamp = incoming.update_timestamp;
|
||||
}
|
||||
await DataService.saveConfig(cfg);
|
||||
appendReqLog(req, { category: 'admin', type: 'update_config_generic', detail: incoming });
|
||||
io.emit('config:updated', cfg);
|
||||
|
||||
Reference in New Issue
Block a user