Skip to content

Commit 550cfd0

Browse files
authored
Merge pull request #258 from LalitDeore/workflow-slowdown
Bug fix
2 parents c8b944e + 78eafa7 commit 550cfd0

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

shared.go

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31052,7 +31052,29 @@ func HandleCheckLicense(ctx context.Context, org Org) Org {
3105231052
org.SyncFeatures.WorkflowExecutions.Active = false
3105331053
}
3105431054

31055-
// For the subsctiption
31055+
if len(shuffleLicenseKey) > 0 {
31056+
license := checkNoInternet()
31057+
if license.Valid == true {
31058+
org.Licensed = true
31059+
if license.Environment.Limit > org.SyncFeatures.MultiEnv.Limit {
31060+
org.SyncFeatures.MultiEnv.Limit = license.Environment.Limit
31061+
org.SyncFeatures.MultiEnv.Active = license.Environment.Active
31062+
}
31063+
31064+
if license.Tenant.Limit > org.SyncFeatures.MultiTenant.Limit {
31065+
org.SyncFeatures.MultiTenant.Limit = license.Tenant.Limit
31066+
org.SyncFeatures.MultiTenant.Active = license.Tenant.Active
31067+
}
31068+
31069+
if license.WorkflowExecutions.Limit > org.SyncFeatures.WorkflowExecutions.Limit {
31070+
org.SyncFeatures.WorkflowExecutions.Limit = license.WorkflowExecutions.Limit
31071+
org.SyncFeatures.WorkflowExecutions.Active = license.WorkflowExecutions.Active
31072+
}
31073+
31074+
org.SyncFeatures.Branding.Active = license.Branding
31075+
}
31076+
}
31077+
3105631078
subscriptionCacheKey := fmt.Sprintf("org_subscriptions_%s", org.Id)
3105731079
cachedData, err := GetCache(ctx, subscriptionCacheKey)
3105831080
if err != nil {

0 commit comments

Comments
 (0)