mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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,
|
sandbox: payload.sandbox,
|
||||||
dbVersion: payload.dbVersion,
|
dbVersion: payload.dbVersion,
|
||||||
},
|
},
|
||||||
|
$setOnInsert: { init: new Date() },
|
||||||
}, { upsert: true });
|
}, { upsert: true });
|
||||||
bus.emit('center/report', this, installId, old, payload);
|
this.ctx.emit('center/report', this, installId, old, payload);
|
||||||
this.response.body = { code: 0 };
|
this.response.body = { code: 0 };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user