mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-24 16:38:41 +03:00
Fix params check
This commit is contained in:
@@ -124,7 +124,7 @@ async function getSegmentsByHash(req: Request, hashedVideoIDPrefix: VideoIDHash,
|
||||
}
|
||||
|
||||
const logData = {
|
||||
extraLogging: req.params.extraLogging,
|
||||
extraLogging: req.query.extraLogging,
|
||||
startTime: Date.now(),
|
||||
lastTime: Date.now()
|
||||
};
|
||||
|
||||
@@ -311,7 +311,7 @@ export async function voteOnSponsorTime(req: Request, res: Response): Promise<Re
|
||||
const ip = getIP(req);
|
||||
|
||||
const logData = {
|
||||
extraLogging: req.params.extraLogging,
|
||||
extraLogging: req.query.extraLogging,
|
||||
startTime: Date.now(),
|
||||
lastTime: Date.now()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user