chore(deps): bson-objectid

This commit is contained in:
Oliver Eyton-Williams
2021-05-05 10:11:49 +02:00
committed by Mrugesh Mohapatra
parent 4dafe9e168
commit e5908ef281
3 changed files with 6 additions and 6 deletions

View File

@ -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}`;