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;
|
||||
}
|
||||
|
||||
async init(instanceType: N8nInstanceType = 'main') {
|
||||
if (this.manager) {
|
||||
async init(instanceType: N8nInstanceType = 'main', forceRecreate = false) {
|
||||
if (this.manager && !forceRecreate) {
|
||||
this.logger.warn('License manager already initialized or shutting down');
|
||||
return;
|
||||
}
|
||||
|
@ -375,6 +375,6 @@ export class License {
|
|||
|
||||
async reinit() {
|
||||
this.manager?.reset();
|
||||
await this.init();
|
||||
await this.init('main', true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue