Add missing cardTransform function call

This commit is contained in:
qowevisa 2024-11-10 08:49:12 +02:00
parent 85f8972d5e
commit ba94ad6084

View File

@ -108,15 +108,7 @@ func CardPutId(c *gin.Context) {
dst.CreditLine = src.CreditLine dst.CreditLine = src.CreditLine
dst.HaveCreditLine = src.HaveCreditLine dst.HaveCreditLine = src.HaveCreditLine
}, },
func(inp *db.Card) types.DbCard { cardTransform)(c)
return types.DbCard{
ID: inp.ID,
Name: inp.Name,
Balance: inp.Balance,
HaveCreditLine: inp.HaveCreditLine,
CreditLine: inp.CreditLine,
}
})(c)
} }
// @Summary Delete card by id // @Summary Delete card by id