Skip to content

Commit

Permalink
return an error if [fcm] section defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwara committed Apr 5, 2024
1 parent 2cd5819 commit d981224
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,7 @@ func (c *Config) validateConfig() error {
}
}
if c.FCM.APIKey != "" {
c.FCM.Enabled = true
if err := c.validateConfigFCM(); err != nil {
return errors.Wrap(err, "[fcm]")
}
return errors.New("[fcm] legacy is not supported anymore. Please use [fcm_v1]")
}
if c.FCMv1.GoogleApplicationCredentials != "" {
c.FCMv1.Enabled = true
Expand Down

0 comments on commit d981224

Please sign in to comment.