Fix logger calls where this will be wrong

This commit is contained in:
Ajay
2023-02-05 13:27:18 -05:00
parent c5426e5fc4
commit 6448fbfbd8
3 changed files with 7 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ export async function verifyTokenRequest(req: VerifyTokenRequest, res: Response)
const identity = await getPatreonIdentity(tokens.accessToken);
if (tokens.expiresIn < 15 * 24 * 60 * 60) {
refreshToken(TokenType.patreon, licenseKey, tokens.refreshToken).catch(Logger.error);
refreshToken(TokenType.patreon, licenseKey, tokens.refreshToken).catch((e) => Logger.error(`refresh token: ${e}`));
}
/* istanbul ignore else */