fix: typo in liequtv router when using redis cache (#5284)
This commit is contained in:
parent
79b2bc6466
commit
6fed84bd42
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue