mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-06 03:49:56 +08:00
fix(server): return early from license health check when quantity matches (#11111)
This commit is contained in:
@@ -238,7 +238,7 @@ export class LicenseService implements OnModuleInit {
|
|||||||
const res = await this.revalidateLicense(license);
|
const res = await this.revalidateLicense(license);
|
||||||
|
|
||||||
if (res?.quantity === memberRequired) {
|
if (res?.quantity === memberRequired) {
|
||||||
break;
|
return;
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.logger.error('Failed to check license health', e);
|
this.logger.error('Failed to check license health', e);
|
||||||
|
|||||||
Reference in New Issue
Block a user