fix: setting wrong property to cache
This commit is contained in:
parent
6ba93a55e2
commit
ce88dfea4c
@ -86,7 +86,7 @@ const getVideoSearchResult = async (searchQuery: string) => {
|
||||
data = await getVideoInfo(aid, "getVideoInfo");
|
||||
if (typeof data === "number") return [];
|
||||
const cacheKey = `cvsa:videoInfo:av${aid}`;
|
||||
await redis.setex(cacheKey, 60, JSON.stringify(data));
|
||||
await redis.setex(cacheKey, 60, JSON.stringify(data.data));
|
||||
}
|
||||
return [
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user