Fixed infinite loop in tenants service
This commit is contained in:
parent
85fba4a1dd
commit
f09ef68442
@ -67,13 +67,14 @@ export class TenantsService {
|
||||
const is90DaysOld = diff >= 90;
|
||||
if (is90DaysOld) {
|
||||
this.#logger.warn(`[TENANTS] Saved tenant ${s.tenantId} is 90 days old, delete it`);
|
||||
this.removeStored(s.tenantId);
|
||||
continue;
|
||||
}
|
||||
|
||||
validStoredTenants.push(s);
|
||||
}
|
||||
|
||||
this.#storageReference.setItem(STORED_TENANTS_KEY, JSON.stringify(validStoredTenants));
|
||||
|
||||
return validStoredTenants;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user