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,14 +29,14 @@ func (wc *SubscriptionTypeController) New(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
wm := wc.SubscriptionTypeService.New(body)
|
||||
wm := wc.SubscriptionTypeService.New(c, body)
|
||||
c.JSON(200, wm)
|
||||
}
|
||||
|
||||
func (wc *SubscriptionTypeController) GetAll(c *gin.Context) {
|
||||
embed, _ := c.GetQuery("embed")
|
||||
|
||||
wm := wc.SubscriptionTypeService.GetAll(embed)
|
||||
wm := wc.SubscriptionTypeService.GetAll(c, embed)
|
||||
|
||||
c.JSON(200, wm)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user