mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
center: track init date
This commit is contained in:
1 parent
b1638c35cd
commit
660fa1a957
1 file changed
+2
-1
@@ -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 };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user