1
0
Fork 0
mirror of synced 2024-09-28 23:31:43 +12:00

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) 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>

View file

@ -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,