Skip to content

Commit

Permalink
remove -'s from uuid's generated in quiz creation for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
nucleogenesis committed Jan 25, 2024
1 parent 2379859 commit f9e66da
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { v4 as uuidv4 } from 'uuid';
import { v4 } from 'uuid';
import isEqual from 'lodash/isEqual';
import uniqWith from 'lodash/uniqWith';
import range from 'lodash/range';
Expand All @@ -17,6 +17,10 @@ import { Quiz, QuizSection, QuizQuestion, QuizExercise } from './quizCreationSpe

const logger = logging.getLogger(__filename);

function uuidv4() {
return v4().replace(/-/g, '');
}

/** Validators **/
/* objectSpecs expects every property to be available -- but we don't want to have to make an
* object with every property just to validate it. So we use these functions to validate subsets
Expand Down

0 comments on commit f9e66da

Please sign in to comment.