mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-13 06:57:05 +03:00
testing CI
This commit is contained in:
@@ -25,7 +25,7 @@ const mergeLocks = (source: DBLock[]) => {
|
||||
const destMatch = dest.find(s => s.videoID === obj.videoID);
|
||||
if (destMatch) {
|
||||
// override longer reason
|
||||
if (obj.reason.length > destMatch.reason.length) destMatch.reason = obj.reason;
|
||||
if (obj.reason?.length > destMatch.reason?.length) destMatch.reason = obj.reason;
|
||||
// push to categories
|
||||
destMatch.categories.push(obj.category);
|
||||
} else {
|
||||
@@ -40,7 +40,6 @@ const mergeLocks = (source: DBLock[]) => {
|
||||
return dest;
|
||||
};
|
||||
|
||||
|
||||
export async function getLockCategoriesByHash(req: Request, res: Response): Promise<Response> {
|
||||
let hashPrefix = req.params.prefix as VideoIDHash;
|
||||
if (!hashPrefixTester(req.params.prefix)) {
|
||||
|
||||
Reference in New Issue
Block a user