small pattern fixes

This commit is contained in:
Fran Jurmanović
2021-06-22 17:18:48 +02:00
parent 2992d433fa
commit 830fa65f8a
4 changed files with 5 additions and 5 deletions

View File

@@ -23,13 +23,12 @@ func NewWalletsHeaderController(as *services.WalletService, s *gin.RouterGroup)
func (wc *WalletsHeaderController) Get(c *gin.Context) {
body := new(models.Auth)
embed, _ := c.GetQuery("embed")
walletId, _ := c.GetQuery("walletId")
auth := c.MustGet("auth")
body.Id = auth.(*models.Auth).Id
wm := wc.WalletService.GetHeader(body, embed, walletId)
wm := wc.WalletService.GetHeader(body, walletId)
c.JSON(200, wm)
}