Skip to content

Commit

Permalink
Update alerts/config.go
Browse files Browse the repository at this point in the history
Co-authored-by: Darin Krauss <[email protected]>
  • Loading branch information
ewollesen and darinkrauss committed Jun 21, 2024
1 parent ce9855d commit c2fa4ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions alerts/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ type Alerts struct {
}

func (c Config) Validate(validator structure.Validator) {
validator.String("UserID", &c.UserID).Using(user.IDValidator)
validator.String("FollowedUserID", &c.FollowedUserID).Using(user.IDValidator)
validator.String("UploadID", &c.UploadID).Exists().Using(data.SetIDValidator)
validator.String("userID", &c.UserID).Using(user.IDValidator)
validator.String("followedUserID", &c.FollowedUserID).Using(user.IDValidator)
validator.String("uploadID", &c.UploadID).Exists().Using(data.SetIDValidator)
c.Alerts.Validate(validator)
}

Expand Down

0 comments on commit c2fa4ab

Please sign in to comment.