Skip to content

Commit

Permalink
`Update CheckSubscription function to return http.StatusOK instead of…
Browse files Browse the repository at this point in the history
… http.StatusNotFound when subscription is not found`
  • Loading branch information
p-shubh committed Feb 6, 2025
1 parent 20bc1d5 commit a281245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1/subscription/subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func CheckSubscription(c *gin.Context) {
res := SubscriptionResponse{
Status: "notFound",
}
c.JSON(http.StatusNotFound, res)
c.JSON(http.StatusOK, res)
}
logwrapper.Errorf("Error fetching subscriptions: %v", err)
c.Status(http.StatusInternalServerError)
Expand Down

0 comments on commit a281245

Please sign in to comment.