fix: refresh flags in monitor on workspace member sync (#2726)

This commit is contained in:
Surya Prashanth
2025-03-13 12:29:15 +05:30
committed by GitHub
parent e8fd78d6e6
commit f35907b7a1

View File

@@ -168,6 +168,13 @@ func GetSyncFeatureFlagHandler(api prime_api.IPrimeMonitorApi, key string) func(
if err := tx.Create(updateLicense).Error; err != nil {
return err
}
if updateLicense.ProductType != "FREE" {
if err := RefreshFeatureFlags(context.Background(), api, *updateLicense, tx); err != nil {
return err
}
}
return nil
}); err != nil {
return ctx.Status(fiber.StatusBadRequest).JSON(fiber.Map{