mirror of
https://github.com/makeplane/plane.git
synced 2025-12-29 00:24:56 +01:00
fix: refresh flags in monitor on workspace member sync (#2726)
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user