Skip to content

Commit

Permalink
Merge pull request #1 from Rockroyal305/Rockroyal305-patch-1
Browse files Browse the repository at this point in the history
Default purchase quantity should be 1
  • Loading branch information
Rockroyal305 authored Nov 24, 2024
2 parents 4a47d5e + 8eb9d22 commit d22f194
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 d22f194

Please sign in to comment.