From ba94ad60845be82a2490b30174365c1cf955c6cd Mon Sep 17 00:00:00 2001 From: qowevisa Date: Sun, 10 Nov 2024 08:49:12 +0200 Subject: [PATCH] Add missing cardTransform function call --- handlers/card.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/handlers/card.go b/handlers/card.go index 21acb09..99c46b2 100644 --- a/handlers/card.go +++ b/handlers/card.go @@ -108,15 +108,7 @@ func CardPutId(c *gin.Context) { dst.CreditLine = src.CreditLine dst.HaveCreditLine = src.HaveCreditLine }, - func(inp *db.Card) types.DbCard { - return types.DbCard{ - ID: inp.ID, - Name: inp.Name, - Balance: inp.Balance, - HaveCreditLine: inp.HaveCreditLine, - CreditLine: inp.CreditLine, - } - })(c) + cardTransform)(c) } // @Summary Delete card by id