mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-07 03:57:06 +03:00
rename hashKey to be more generic
This commit is contained in:
@@ -25,8 +25,8 @@ export function ratingHashKey(hashPrefix: VideoIDHash, service: Service): string
|
||||
return `rating.${service}.${hashPrefix}`;
|
||||
}
|
||||
|
||||
export function userHashKey(userID: HashedValue): string {
|
||||
if (userID.length !== 64) Logger.warn(`Redis userHash key is not length 64! ${userID}`);
|
||||
export function shaHashKey(singleIter: HashedValue): string {
|
||||
if (singleIter.length !== 64) Logger.warn(`Redis sha.hash key is not length 64! ${singleIter}`);
|
||||
|
||||
return `user.${userID}`;
|
||||
return `sha.hash.${singleIter}`;
|
||||
}
|
||||
Reference in New Issue
Block a user