Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xpub-epmc
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Literature-services
public-projects
xpub-epmc
Commits
57647b58
Commit
57647b58
authored
6 years ago
by
Nikos Marinos
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/shared-data-model' into shared-data-model
parents
4b3d2d31
e3d3b407
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/seed.js
+2
-2
2 additions, 2 deletions
scripts/seed.js
with
2 additions
and
2 deletions
scripts/seed.js
+
2
−
2
View file @
57647b58
...
...
@@ -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
)
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment