Introduce own Numeric type and revert to stdlib from pgx
This commit is contained in:
@ -12,7 +12,6 @@ import (
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/google/uuid"
|
||||
"github.com/jackc/pgtype"
|
||||
)
|
||||
|
||||
// Handler handles incoming requests
|
||||
@ -160,7 +159,7 @@ func (h *Handler) newTransaction(c *gin.Context) {
|
||||
new := postgres.CreateTransactionParams{
|
||||
Memo: transactionMemo,
|
||||
Date: transactionDateValue,
|
||||
Amount: pgtype.Numeric{},
|
||||
Amount: postgres.Numeric{},
|
||||
AccountID: transactionAccountID,
|
||||
}
|
||||
_, err = h.Service.DB.CreateTransaction(c.Request.Context(), new)
|
||||
|
Reference in New Issue
Block a user