1
0

fix: setting wrong property to cache

This commit is contained in:
alikia2x (寒寒) 2025-12-10 14:28:25 +08:00
parent 6ba93a55e2
commit ce88dfea4c
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

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