mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
fix: Init license properly with multi main (no-changelog) (#9467)
This commit is contained in:
parent
bf2ee51e36
commit
747012dcfd
|
@ -61,8 +61,8 @@ export class License {
|
||||||
return autoRenewEnabled;
|
return autoRenewEnabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
async init(instanceType: N8nInstanceType = 'main') {
|
async init(instanceType: N8nInstanceType = 'main', forceRecreate = false) {
|
||||||
if (this.manager) {
|
if (this.manager && !forceRecreate) {
|
||||||
this.logger.warn('License manager already initialized or shutting down');
|
this.logger.warn('License manager already initialized or shutting down');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -375,6 +375,6 @@ export class License {
|
||||||
|
|
||||||
async reinit() {
|
async reinit() {
|
||||||
this.manager?.reset();
|
this.manager?.reset();
|
||||||
await this.init();
|
await this.init('main', true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue