mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Fix hashing empty value for patreon sign in
This commit is contained in:
parent
ee56a8dea4
commit
13ae4681cb
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ interface GenerateTokenRequest extends Request {
|
|||
|
||||
export async function generateTokenRequest(req: GenerateTokenRequest, res: Response): Promise<Response> {
|
||||
const { query: { code, adminUserID }, params: { type } } = req;
|
||||
const adminUserIDHash = await getHashCache(adminUserID);
|
||||
const adminUserIDHash = adminUserID ? (await getHashCache(adminUserID)) : null;
|
||||
|
||||
if (!code || !type) {
|
||||
return res.status(400).send("Invalid request");
|
||||
|
|
Loading…
Reference in a new issue