You've already forked gun-manager-backend
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:
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user