Skip to content
Snippets Groups Projects
Commit 57647b58 authored by Nikos Marinos's avatar Nikos Marinos
Browse files

Merge remote-tracking branch 'origin/shared-data-model' into shared-data-model

parents 4b3d2d31 e3d3b407
No related branches found
No related tags found
......@@ -15,7 +15,7 @@ async function seed() {
const users = config.get('users')
/* eslint-disable no-await-in-loop */
/* eslint-disable no-restricted-syntax */
users.forEach(async user => {
for (const user of users) {
let i = 0
for (const identity of user.identities) {
const exists = await Identity.findByField('email', identity.email)
......@@ -32,7 +32,7 @@ async function seed() {
if (user.identities.find(identity => identity !== null)) {
await new User(user).save()
}
})
}
} catch (e) {
logger.warn('Could not load any seeds', e)
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment