From 6fed84bd421b310f8f2b9f83e76cb008c2efa812 Mon Sep 17 00:00:00 2001 From: hoilc Date: Wed, 29 Jul 2020 21:34:59 +0800 Subject: [PATCH] fix: typo in liequtv router when using redis cache (#5284) --- lib/routes/liequtv/room.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/liequtv/room.js b/lib/routes/liequtv/room.js index a013065f2..8dd20466a 100644 --- a/lib/routes/liequtv/room.js +++ b/lib/routes/liequtv/room.js @@ -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',