mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-01-18 02:41:23 +00:00
Apparently neode doesn't like multiple connections
Why? 😟
This commit is contained in:
parent
95d26a701c
commit
1970baaa2d
@ -21,11 +21,10 @@ export default function create() {
|
||||
...args,
|
||||
}
|
||||
args = await encryptPassword(args)
|
||||
const [user, email] = await Promise.all([
|
||||
neodeInstance.create('User', args),
|
||||
neodeInstance.create('EmailAddress', { email: args.email }),
|
||||
])
|
||||
await Promise.all([user.relateTo(email, 'primaryEmail'), email.relateTo(user, 'belongsTo')])
|
||||
const user = await neodeInstance.create('User', args)
|
||||
const email = await neodeInstance.create('EmailAddress', { email: args.email })
|
||||
await user.relateTo(email, 'primaryEmail')
|
||||
await email.relateTo(user, 'belongsTo')
|
||||
return user
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user