Skip to content

Commit

Permalink
Change constant
Browse files Browse the repository at this point in the history
  • Loading branch information
MDrakos committed Nov 21, 2024
1 parent 06643af commit 6a801e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/state-svc/internal/notifications/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func fetch() ([]*graph.NotificationInfo, error) {
return nil, errs.Wrap(err, "Could not read messages override file")
}
} else {
body, err = httputil.Get(constants.MessagesInfoURL)
body, err = httputil.Get(constants.NotificationsInfoURL)
if err != nil {
return nil, errs.Wrap(err, "Could not fetch messages information")
}
Expand Down
4 changes: 2 additions & 2 deletions internal/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ const VulnerabilitiesAPIPath = "/v13s/v1/graphql"
// HasuraInventoryAPIPath is the path used for the hasura inventory api
const HasuraInventoryAPIPath = "/sv/hasura-inventory/v1/graphql"

// MessagesInfoURL is the URL we check against to see what versions are deprecated
const MessagesInfoURL = "https://state-tool.s3.amazonaws.com/messages.json"
// NotificationsInfoURL is the URL we check against to see what versions are deprecated
const NotificationsInfoURL = "https://state-tool.s3.amazonaws.com/notifications.json"

// DateFormatUser is the date format we use when communicating with the end-user
const DateFormatUser = "January 02, 2006"
Expand Down

0 comments on commit 6a801e8

Please sign in to comment.