Please enter the commit message for your changes. Lines starting with '#' will be ignored, and an empty message aborts the commit.

This commit is contained in:
2023-08-07 20:55:24 -04:00
parent 04ebe9e855
commit 7a119a8b60

View File

@@ -46,24 +46,31 @@ func Post(c echo.Context) error {
insertRow := db.InsertGunParams{ insertRow := db.InsertGunParams{
Make: sql2.NullString{ Make: sql2.NullString{
String: gun.Make, String: gun.Make,
Valid: true,
}, },
Model: sql2.NullString{ Model: sql2.NullString{
String: gun.Model, String: gun.Model,
Valid: true,
}, },
SerialNumber: sql2.NullString{ SerialNumber: sql2.NullString{
String: gun.SerialNumber, String: gun.SerialNumber,
Valid: true,
}, },
PurchaseAmount: sql2.NullInt64{ PurchaseAmount: sql2.NullInt64{
Int64: gun.PurchaseAmount, Int64: gun.PurchaseAmount,
Valid: true,
}, },
ValueAmount: sql2.NullInt64{ ValueAmount: sql2.NullInt64{
Int64: gun.ValueAmount, Int64: gun.ValueAmount,
Valid: true,
}, },
DatePurchased: sql2.NullString{ DatePurchased: sql2.NullString{
String: gun.DatePurchased, String: gun.DatePurchased,
Valid: true,
}, },
Notes: sql2.NullString{ Notes: sql2.NullString{
String: gun.Notes, String: gun.Notes,
Valid: true,
}, },
} }