Skip to content

Commit

Permalink
change target-host to target-referer
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mattia-m committed Nov 23, 2023
1 parent 770e08f commit c291941
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/api/v1/notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ func (nac *NotificationApiClient) SendNotification(c *gin.Context) {
return
}

host := c.Request.Host
successMessage, err := svc.SendNotification(host, notification)
referer := c.Request.Referer()
successMessage, err := svc.SendNotification(referer, notification)
if err != nil {
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{
"message": helper.ValidateErrorResponse(err, "failed to send"),
Expand Down

0 comments on commit c291941

Please sign in to comment.