Skip to content

Commit

Permalink
fix: Promise.all应为Promise.allSettled
Browse files Browse the repository at this point in the history
  • Loading branch information
zonemeen committed Jun 9, 2023
1 parent 4ac3c35 commit 72f22bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qrcode/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default async ({
pageNum,
pageSize,
} as SearchProps)
const lyricList = await Promise.all(
const lyricList = await Promise.allSettled(
searchSongs.map(async ({ lyricUrl }: { lyricUrl: string }) => {
return await lyric[service as ServiceType](null, lyricUrl)
})
Expand Down

0 comments on commit 72f22bc

Please sign in to comment.