From 7a119a8b606a026b286f0903fc416279b350b458 Mon Sep 17 00:00:00 2001 From: Ron Rise Date: Mon, 7 Aug 2023 20:55:24 -0400 Subject: [PATCH] Please enter the commit message for your changes. Lines starting with '#' will be ignored, and an empty message aborts the commit. --- Handlers/Guns/Index.go | 7 +++++++ 1 file changed, 7 insertions(+) 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, }, }