Fix type error in tests

This commit is contained in:
Ajay
2023-08-03 01:16:57 -04:00
parent dfa4578d28
commit 1dbb393e4d
3 changed files with 6 additions and 6 deletions

View File

@@ -30,7 +30,7 @@ export async function verifyTokenRequest(req: VerifyTokenRequest, res: Response)
});
}
if (isLocalLicenseKey(licenseKey)) {
if (isLocalLicenseKey(licenseKey) && !licenseKey.startsWith("P")) {
const parts = licenseKey.split("-");
const code = parts[0];
const givenResult = parts[1];