fix: typo in liequtv router when using redis cache (#5284)

This commit is contained in:
hoilc 2020-07-29 21:34:59 +08:00 committed by GitHub
parent 79b2bc6466
commit 6fed84bd42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ module.exports = async (ctx) => {
const id = ctx.params.id;
const cache_key = `liequtv::latest_base_host::${new Date().toJSON().slice(0, 10)}`;
const url = `${ctx.cache.get(cache_key) || original_host}/${id}`;
const url = `${await ctx.cache.get(cache_key) || original_host}/${id}`;
const response = await got({
method: 'get',