fix example code to generate unique file ids for example projects
This commit is contained in:
parent
0c6246fe45
commit
ab19b8d598
1 changed files with 4 additions and 6 deletions
|
@ -25,17 +25,11 @@ const defaultHTML =
|
||||||
|
|
||||||
const defaultCSS =
|
const defaultCSS =
|
||||||
`html, body {
|
`html, body {
|
||||||
overflow: hidden;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 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_id = process.env.GITHUB_ID;
|
||||||
const client_secret = process.env.GITHUB_SECRET;
|
const client_secret = process.env.GITHUB_SECRET;
|
||||||
|
|
||||||
|
@ -186,6 +180,10 @@ function createProjectsInP5user(projectsInAllCategories) {
|
||||||
async.eachSeries(projectsInAllCategories, (projectsInOneCategory, categoryCallback) => {
|
async.eachSeries(projectsInAllCategories, (projectsInOneCategory, categoryCallback) => {
|
||||||
async.eachSeries(projectsInOneCategory, (project, projectCallback) => {
|
async.eachSeries(projectsInOneCategory, (project, projectCallback) => {
|
||||||
let newProject;
|
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, '');
|
const noNumberprojectName = project.projectName.replace(/(\d+)/g, '');
|
||||||
if (noNumberprojectName === 'Instance Mode : Instance Container ') {
|
if (noNumberprojectName === 'Instance Mode : Instance Container ') {
|
||||||
newProject = new Project({
|
newProject = new Project({
|
||||||
|
|
Loading…
Reference in a new issue