center: track init date

This commit is contained in:
undefined committed 2023-01-30 08:30:37 +08:00
1 parent b1638c35cd
commit 660fa1a957
1 file changed
+2 -1
+2 -1
View File
@@ -63,8 +63,9 @@ class DataReportHandler extends Handler {
sandbox: payload.sandbox,
dbVersion: payload.dbVersion,
},
$setOnInsert: { init: new Date() },
}, { upsert: true });
bus.emit('center/report', this, installId, old, payload);
this.ctx.emit('center/report', this, installId, old, payload);
this.response.body = { code: 0 };
}
}