-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Render mock data #40
base: master
Are you sure you want to change the base?
Render mock data #40
Conversation
Codecov Report
@@ Coverage Diff @@
## master #40 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 1 1
Lines 6 6
=====================================
Hits 6 6 Continue to review full report at Codecov.
|
database/db_build.js
Outdated
}); | ||
var dataLength = 0; | ||
for (var i = 0; i < careers.length; i++) { | ||
careers[i].save((error, result) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did some research and found out that save is a wrapper for insert and update, see this. If this is true then we could get rid of the for loop and use insertMany() instead.
relates #30