Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: first manifest must be 0.json #18

Merged
merged 2 commits into from
May 17, 2022
Merged

Conversation

aspnxdd
Copy link
Contributor

@aspnxdd aspnxdd commented May 12, 2022

This PR fixes the following:

  • Depending on the order of uploading files, the CM creation failed. Now, it makes sure that the firstManifest is the 0.json file, therefore the upload order does not matter.

Comment on lines 133 to 134
const firstManifestFile = files.find((file) => file.name === "0.json");
if (!firstManifestFile) throw new Error("0.json must be present")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to use single quotes

@aspnxdd aspnxdd requested a review from cpl121 May 12, 2022 15:53
Copy link
Member

@cpl121 cpl121 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!

@cpl121 cpl121 merged commit 2fccdfc into dev May 17, 2022
@begonaalvarezd begonaalvarezd deleted the fix/create-cm-first-json-0 branch May 17, 2022 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants