Skip to content

Commit

Permalink
fix: remove validate profile id
Browse files Browse the repository at this point in the history
  • Loading branch information
quanghuynguyen1902 committed Aug 18, 2023
1 parent e8a3e92 commit 90bef2b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/handler/wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,6 @@ func (h *Handler) ListOwnedWallets(c *gin.Context) {
return
}

if !util.ValidateNumberSeries(req.ProfileID) {
err := errors.New("profile Id is invalid")
h.log.Error(err, "[handler.ListOwnedWallets] validate profile id failed")
c.JSON(http.StatusBadRequest, response.CreateResponse[any](nil, nil, err, nil))
return
}

req.GuildID = c.Query("guild_id")
if req.GuildID == "" {
err := errors.New("guild_id is required")
Expand Down

0 comments on commit 90bef2b

Please sign in to comment.