Skip to content

Commit

Permalink
Default purchase quantity should be 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Rockroyal305 authored Nov 24, 2024
1 parent 4a47d5e commit 8eb9d22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion models/purchase.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ const purchaseSchema = mongoose.Schema(
part_name: [String],
subsystem: [String],
price_per_unit: [Number],
quantity: [Number],
quantity: {
type: Number,
default: 1,
},
shipping_and_handling: [Number],
tax: {
type: Number,
Expand Down

0 comments on commit 8eb9d22

Please sign in to comment.