Skip to content

Commit

Permalink
fix(service-staff): Fix create-order lambda (#479)
Browse files Browse the repository at this point in the history
Fix error in create-order: Date.getTime() is not a function

Co-authored-by: biffgaut <[email protected]>
  • Loading branch information
kiley0 and biffgaut authored Oct 25, 2021
1 parent 3902a91 commit 982c026
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ exports.handler = async (event) => {
orderStatus: 'OPEN',
orderTotal: req.orderTotal,
tipAmount: req.tipAmount,
timeOpened: new Date.getTime(),
timeOpened: new Date().getTime(),
timeClosed: undefined,
gsi1pk: 'order',
gsi1sk: `OPEN#${req.timeOpened}`,
Expand Down

0 comments on commit 982c026

Please sign in to comment.