moving insert to another model and done so in database internal

This commit is contained in:
samantha42
2026-03-25 21:58:08 +01:00
parent 2dccca5da1
commit d491b9c14c
11 changed files with 85 additions and 83 deletions

View File

@@ -45,7 +45,7 @@ func AddTradeHandler(db *sql.DB) http.HandlerFunc {
Product: model.TradeProduct(req.Product),
Type: model.TradeType(req.Type),
Price: req.Price,
Currency: currency,
Currency: currency.Name,
Date: req.Date,
}