Update refreshPlan to consider workspace

This commit is contained in:
Tuan Dang
2023-06-14 12:28:01 +01:00
parent 92647341a9
commit 82a026a426
4 changed files with 10 additions and 5 deletions
+2 -2
View File
@@ -104,9 +104,9 @@ class EELicenseService {
return this.globalFeatureSet;
}
public async refreshOrganizationPlan(organizationId: string, workspaceId?: string) {
public async refreshPlan(organizationId: string, workspaceId?: string) {
if (this.instanceType === 'cloud') {
this.localFeatureSet.del(organizationId);
this.localFeatureSet.del(`${organizationId}-${workspaceId ?? ''}`);
await this.getPlan(organizationId, workspaceId);
}
}