added user created at timestamp

This commit is contained in:
Martin McKeaveney 2021-09-22 09:29:51 +01:00
parent 524ba6694d
commit 87b61b5c54
2 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,7 @@
notifications.error(res.message)
} else {
notifications.success(res.message)
analytics.captureEvent(Events.USER.INVITE)
analytics.captureEvent(Events.USER.INVITE, { type: selected })
}
}
</script>

View File

@ -63,6 +63,7 @@ async function saveUser(user, tenantId, hashPassword = true) {
_id = _id || generateGlobalUserID()
user = {
createdAt: Date.now(),
...dbUser,
...user,
_id,
@ -138,6 +139,7 @@ exports.adminUser = async ctx => {
const user = {
email: email,
password: password,
createdAt: Date.now(),
roles: {},
builder: {
global: true,