diff --git a/app/controllers/cwmp_controller.ts b/app/controllers/cwmp_controller.ts index edd6993..3ed8201 100644 --- a/app/controllers/cwmp_controller.ts +++ b/app/controllers/cwmp_controller.ts @@ -175,7 +175,8 @@ export default class CwmpController { // Track last periodic inform timestamp const isPeriodic = events.some((e) => String(e).toUpperCase().includes('PERIODIC') || String(e) === '2') - if (isPeriodic) { + const isBootstrap = events.some((e) => String(e).toUpperCase().includes('BOOTSTRAP') || String(e) === '0') + if (isPeriodic || isBootstrap) { await DeviceModel.updateOne({ identifier: hashId }, { $set: { lastPeriodicInformAt: new Date() } }).catch(() => {}) }