Fix bad stream url redirect. (#1524)

This commit is contained in:
infinite-persistence 2022-05-19 02:32:22 +08:00 committed by GitHub
parent c46184e6b3
commit 8dd0982f33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@ router.get(`/$/download/:claimName/:claimId`, async (ctx) => {
});
router.get(`/$/stream/:claimName/:claimId`, async (ctx) => {
const streamUrl = getStreamUrl(ctx);
const streamUrl = await getStreamUrl(ctx);
ctx.redirect(streamUrl);
});