added user created at timestamp
This commit is contained in:
parent
524ba6694d
commit
87b61b5c54
|
@ -26,7 +26,7 @@
|
||||||
notifications.error(res.message)
|
notifications.error(res.message)
|
||||||
} else {
|
} else {
|
||||||
notifications.success(res.message)
|
notifications.success(res.message)
|
||||||
analytics.captureEvent(Events.USER.INVITE)
|
analytics.captureEvent(Events.USER.INVITE, { type: selected })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -63,6 +63,7 @@ async function saveUser(user, tenantId, hashPassword = true) {
|
||||||
|
|
||||||
_id = _id || generateGlobalUserID()
|
_id = _id || generateGlobalUserID()
|
||||||
user = {
|
user = {
|
||||||
|
createdAt: Date.now(),
|
||||||
...dbUser,
|
...dbUser,
|
||||||
...user,
|
...user,
|
||||||
_id,
|
_id,
|
||||||
|
@ -138,6 +139,7 @@ exports.adminUser = async ctx => {
|
||||||
const user = {
|
const user = {
|
||||||
email: email,
|
email: email,
|
||||||
password: password,
|
password: password,
|
||||||
|
createdAt: Date.now(),
|
||||||
roles: {},
|
roles: {},
|
||||||
builder: {
|
builder: {
|
||||||
global: true,
|
global: true,
|
||||||
|
|
Loading…
Reference in New Issue