File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ async function createProjectsInP5user(projectsInAllCategories) {
237
237
try {
238
238
const res = await rp ( options ) ;
239
239
const user = await User . findOne ( { username : 'p5' } ) . exec ( ) ;
240
- Q . all ( projectsInAllCategories . map ( projectsInOneCategory => Q . all ( projectsInOneCategory . map ( async ( project ) => {
240
+ await Q . all ( projectsInAllCategories . map ( projectsInOneCategory => Q . all ( projectsInOneCategory . map ( async ( project ) => {
241
241
let newProject ;
242
242
const a = objectID ( ) . toHexString ( ) ;
243
243
const b = objectID ( ) . toHexString ( ) ;
@@ -336,8 +336,8 @@ async function createProjectsInP5user(projectsInAllCategories) {
336
336
} catch ( error ) {
337
337
throw error ;
338
338
}
339
- } ) ) ) )
340
- . then ( ( ) => process . exit ( ) ) ;
339
+ } ) ) ) ) ;
340
+ process . exit ( ) ;
341
341
} catch ( error ) {
342
342
throw error ;
343
343
}
You can’t perform that action at this time.
0 commit comments