From ab19b8d5988119a0db4eae223d444f6734370681 Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Tue, 24 Jan 2017 17:47:20 -0500 Subject: [PATCH] fix example code to generate unique file ids for example projects --- server/examples.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/server/examples.js b/server/examples.js index d1584b34..658df6fa 100644 --- a/server/examples.js +++ b/server/examples.js @@ -25,17 +25,11 @@ const defaultHTML = const defaultCSS = `html, body { - overflow: hidden; margin: 0; padding: 0; } `; -const a = objectID().toHexString(); -const b = objectID().toHexString(); -const c = objectID().toHexString(); -const r = objectID().toHexString(); - const client_id = process.env.GITHUB_ID; const client_secret = process.env.GITHUB_SECRET; @@ -186,6 +180,10 @@ function createProjectsInP5user(projectsInAllCategories) { async.eachSeries(projectsInAllCategories, (projectsInOneCategory, categoryCallback) => { async.eachSeries(projectsInOneCategory, (project, projectCallback) => { let newProject; + const a = objectID().toHexString(); + const b = objectID().toHexString(); + const c = objectID().toHexString(); + const r = objectID().toHexString(); const noNumberprojectName = project.projectName.replace(/(\d+)/g, ''); if (noNumberprojectName === 'Instance Mode : Instance Container ') { newProject = new Project({