chore: ignore empty key

This commit is contained in:
DarkSky committed 2025-11-19 13:46:11 +08:00
1 parent 221c493c56
commit 33a014977a
1 file changed
+1 -1
@@ -149,7 +149,7 @@ export class LicenseController {
throw new LicenseNotFound(); throw new LicenseNotFound();
} }
if (license.validateKey && license.validateKey !== revalidateKey) { if (!license.validateKey || license.validateKey !== revalidateKey) {
throw new InvalidLicenseToActivate({ throw new InvalidLicenseToActivate({
reason: 'Invalid validate key', reason: 'Invalid validate key',
}); });