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