Allow video labels cashing with prefix of 4

This commit is contained in:
Ajay
2025-01-18 00:22:17 -05:00
parent 2455d2cd7e
commit 80b1019783
2 changed files with 3 additions and 4 deletions

View File

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