added user created at timestamp
This commit is contained in:
parent
524ba6694d
commit
87b61b5c54
|
@ -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>
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue