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