mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
upgraded migrations and context usage
This commit is contained in:
@@ -29,7 +29,7 @@ func (wc *TransactionController) New(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
wm := wc.TransactionService.New(body)
|
||||
wm := wc.TransactionService.New(c, body)
|
||||
c.JSON(200, wm)
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ func (wc *TransactionController) GetAll(c *gin.Context) {
|
||||
fr := FilteredResponse(c)
|
||||
wallet, _ := c.GetQuery("walletId")
|
||||
|
||||
wc.TransactionService.GetAll(body, wallet, fr)
|
||||
wc.TransactionService.GetAll(c, body, wallet, fr)
|
||||
|
||||
c.JSON(200, fr)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user