chore(deps): bson-objectid
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
4dafe9e168
commit
e5908ef281
@ -82,7 +82,7 @@ ${seedTails}`
|
||||
|
||||
const template =
|
||||
`---
|
||||
id: ${ObjectID.generate()}
|
||||
id: ${ObjectID()}
|
||||
title: Part ${stepNum}
|
||||
challengeType: 0
|
||||
dashedName: part-${stepNum}
|
||||
@ -174,7 +174,7 @@ const reorderSteps = () => {
|
||||
);
|
||||
const filePath = `${projectPath}${newFileName}.tmp`;
|
||||
const frontMatter = matter.read(filePath);
|
||||
const challengeID = frontMatter.data.id || ObjectID.generate();
|
||||
const challengeID = frontMatter.data.id || ObjectID();
|
||||
const title =
|
||||
newFileName === 'final.md' ? 'Final Prototype' : `Part ${newStepNum}`;
|
||||
const dashedName = `part-${newStepNum}`;
|
||||
|
Reference in New Issue
Block a user