frzyc / genshin-optimizer

An Artifact optimizer for Genshin Impact.
https://frzyc.github.io/genshin-optimizer/
MIT License
749 stars 218 forks source link

Fix asset file generation #2208

Closed nguyentvan7 closed 3 weeks ago

nguyentvan7 commented 4 weeks ago

Describe your changes

Asset file generation wasn't actually working, because of the improper use of .then(). Using proper async/await paradigm. Also removed an extra sort call since Prettier will just do it for us.

Issue or discord link

Testing/validation

Checklist before requesting a review (leave this PR as draft if any part of this list is not done.)

github-actions[bot] commented 4 weeks ago

[frontend] [Wed Jun 5 18:32:04 UTC 2024] - Deployed 0d16d662f43b38db77362f1ab663096c39aed8fa to https://genshin-optimizer-prs.github.io/pr/2208/frontend (Takes 3-5 minutes after this completes to be available)

[sr-frontend] [Wed Jun 5 18:33:20 UTC 2024] - Deployed 0d16d662f43b38db77362f1ab663096c39aed8fa to https://genshin-optimizer-prs.github.io/pr/2208/sr-frontend (Takes 3-5 minutes after this completes to be available)

[sr-frontend] [Wed Jun 5 18:59:10 UTC 2024] - Deployed 91a29dc131ba797e27bf9d8ddddd801d5df428c2 to https://genshin-optimizer-prs.github.io/pr/2208/sr-frontend (Takes 3-5 minutes after this completes to be available)

[frontend] [Wed Jun 5 18:59:53 UTC 2024] - Deployed 91a29dc131ba797e27bf9d8ddddd801d5df428c2 to https://genshin-optimizer-prs.github.io/pr/2208/frontend (Takes 3-5 minutes after this completes to be available)

[sr-frontend] [Thu Jun 6 23:05:09 UTC 2024] - Deployed ab3d28ac86c843ac69f0afa428eff76ee3aafa99 to https://genshin-optimizer-prs.github.io/pr/2208/sr-frontend (Takes 3-5 minutes after this completes to be available)

[frontend] [Thu Jun 6 23:05:31 UTC 2024] - Deployed ab3d28ac86c843ac69f0afa428eff76ee3aafa99 to https://genshin-optimizer-prs.github.io/pr/2208/frontend (Takes 3-5 minutes after this completes to be available)

[Sat Jun 8 06:24:17 UTC 2024] - Deleted deployment