Skip to content

Commit

Permalink
Merge pull request #74 from CMU-17-356/ananyabhat_placeorder
Browse files Browse the repository at this point in the history
Improvements to cart page, and introduced functionality to add items …
  • Loading branch information
ananyabhat authored Mar 2, 2022
2 parents 933b432 + 148f051 commit e5991c1
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 314 deletions.
2 changes: 1 addition & 1 deletion backend/src/models/order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const OrderSchema = new Schema({
location: {type: LocationSchema, required: true},
store: {type: StoreSchema},
items: {type: [DonutSchema], required: true},
price: {type: Number, required: true},
total: {type: Number, required: true},
status: {type: String, enum: ["Accepted", "Preparing", "Delivering", "Delivered", "Canceled"], required: true},
start_time: {type: Date, default: Date.now},
end_time: {type: Date}
Expand Down
Loading

0 comments on commit e5991c1

Please sign in to comment.