fix(striker-ui-api): allow keyword 'new' as manifest UUID in manifest creation

main
Tsu-ba-me 1 year ago
parent 07e04a970a
commit 27ab8f2900
  1. 2
      striker-ui-api/src/lib/request_handlers/manifest/buildManifest.ts

@ -51,7 +51,7 @@ export const buildManifest = async (
const manifestUuid = sanitize(rawManifestUuid, 'string');
assert(
REP_UUID.test(manifestUuid),
manifestUuid === 'new' || REP_UUID.test(manifestUuid),
`Manifest UUID must be a UUIDv4; got [${manifestUuid}]`,
);

Loading…
Cancel
Save