diff --git a/Handlers/Guns/Index.go b/Handlers/Guns/Index.go index 77348d2..6717c74 100644 --- a/Handlers/Guns/Index.go +++ b/Handlers/Guns/Index.go @@ -46,24 +46,31 @@ func Post(c echo.Context) error { insertRow := db.InsertGunParams{ Make: sql2.NullString{ String: gun.Make, + Valid: true, }, Model: sql2.NullString{ String: gun.Model, + Valid: true, }, SerialNumber: sql2.NullString{ String: gun.SerialNumber, + Valid: true, }, PurchaseAmount: sql2.NullInt64{ Int64: gun.PurchaseAmount, + Valid: true, }, ValueAmount: sql2.NullInt64{ Int64: gun.ValueAmount, + Valid: true, }, DatePurchased: sql2.NullString{ String: gun.DatePurchased, + Valid: true, }, Notes: sql2.NullString{ String: gun.Notes, + Valid: true, }, }