1
0

fix: correctly returning the data from video info endpoint

This commit is contained in:
alikia2x (寒寒) 2025-12-10 14:29:54 +08:00
parent ce88dfea4c
commit 26207171d6
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: 56209E0CCD8420C6

View File

@ -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 [
{