Skip to content

Commit

Permalink
Consolidates message type for deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
bomoko committed Dec 14, 2023
1 parent 929be1a commit cc25d37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions internal/service/defs.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
package service

type DeleteFactsMessage struct {
Type string `json:"type"`
EnvironmentId int `json:"environmentId"`
Source string `json:"source"`
Service string `json:"service"`
}

type DeleteProblemsMessage struct {
type DirectDeleteMessage struct {
Type string `json:"type"`
EnvironmentId int `json:"environmentId"`
Source string `json:"source"`
Expand Down
2 changes: 1 addition & 1 deletion internal/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func generateDeletionMessage(c *gin.Context, r *routerInstance, deletionType str
return
}

message := DeleteFactsMessage{
message := DirectDeleteMessage{
Type: deletionType,
EnvironmentId: int(envid),
Source: source,
Expand Down

0 comments on commit cc25d37

Please sign in to comment.