Merge branch 'main' into fix/webhook_bug_389

This commit is contained in:
lemonScaletech
2023-09-11 11:57:19 +05:30
4 changed files with 5 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ func PlaygroundHandler() gin.HandlerFunc {
disablePlayground, err := memorystore.Provider.GetBoolStoreEnvVariable(constants.EnvKeyDisablePlayGround)
if err != nil {
log.Debug("error while getting disable playground value")
return
disablePlayground = false
}
// if env set to false, then check if logged in as super admin, if logged in then return graphql else 401 error

View File

@@ -83,10 +83,8 @@ func RegisterEvent(ctx context.Context, eventName string, authRecipe string, use
}
req.Header.Set("Content-Type", "application/json")
if webhook.Headers != nil {
for key, val := range webhook.Headers {
req.Header.Set(key, val.(string))
}
for key, val := range webhook.Headers {
req.Header.Set(key, val.(string))
}
client := &http.Client{Timeout: time.Second * 30}