fix: correctly returning the data from video info endpoint
This commit is contained in:
parent
ce88dfea4c
commit
26207171d6
@ -85,8 +85,9 @@ const getVideoSearchResult = async (searchQuery: string) => {
|
||||
} else {
|
||||
data = await getVideoInfo(aid, "getVideoInfo");
|
||||
if (typeof data === "number") return [];
|
||||
data = data.data;
|
||||
const cacheKey = `cvsa:videoInfo:av${aid}`;
|
||||
await redis.setex(cacheKey, 60, JSON.stringify(data.data));
|
||||
await redis.setex(cacheKey, 60, JSON.stringify(data));
|
||||
}
|
||||
return [
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user