Skip to content

Commit

Permalink
Merge pull request #1302 from consolelabs/fix/update-setting-web-plat…
Browse files Browse the repository at this point in the history
…form

fix: update setting web platform
  • Loading branch information
anhnh12 authored Jan 4, 2024
2 parents 2a55142 + ddefac5 commit d496e8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/request/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func (s *BasePrivacySetting) validate() error {
}
}

platforms := []string{"discord", "telegram", "website"}
platforms := []string{"discord", "telegram", "web"}
for _, s := range s.CustomSettings {
if !sliceutils.Contains(targetGroups, s.TargetGroup) {
return fmt.Errorf("custom_settings.target_group: invalid value. Available values: %s", strings.Join(targetGroups, ","))
Expand All @@ -211,7 +211,7 @@ type UpdateNotificationSettingPayloadRequest struct {
}

func (r *UpdateNotificationSettingPayloadRequest) Bind(c *gin.Context) error {
platforms := []string{"discord", "telegram", "website"}
platforms := []string{"discord", "telegram", "web"}
for _, p := range r.Platforms {
if !sliceutils.Contains(platforms, p) {
return fmt.Errorf("platforms: invalid value. Available values: %s", strings.Join(platforms, ","))
Expand Down

0 comments on commit d496e8b

Please sign in to comment.