Change video label cache to 3 chars

This commit is contained in:
Ajay
2023-03-18 00:36:05 -04:00
parent 5c549b5295
commit d4c4dbffcc
2 changed files with 2 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ async function getSegmentsFromDBByHash(hashedVideoIDPrefix: VideoIDHash, service
[`${hashedVideoIDPrefix}%`, service]
) as Promise<DBSegment[]>;
if (hashedVideoIDPrefix.length === 4) {
if (hashedVideoIDPrefix.length === 3) {
return await QueryCacher.get(fetchFromDB, videoLabelsHashKey(hashedVideoIDPrefix, service));
}