From 982c02619d0bb4a5f9fd1433f60b74ef89a1603c Mon Sep 17 00:00:00 2001 From: Kiley Dorton Date: Mon, 25 Oct 2021 17:35:55 -0400 Subject: [PATCH] fix(service-staff): Fix create-order lambda (#479) Fix error in create-order: Date.getTime() is not a function Co-authored-by: biffgaut <78155736+biffgaut@users.noreply.github.com> --- .../lib/lambda/service-staff/create-order/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/use_cases/aws-restaurant-management-demo/lib/lambda/service-staff/create-order/index.js b/source/use_cases/aws-restaurant-management-demo/lib/lambda/service-staff/create-order/index.js index 25bd3b1c8..0136818f4 100644 --- a/source/use_cases/aws-restaurant-management-demo/lib/lambda/service-staff/create-order/index.js +++ b/source/use_cases/aws-restaurant-management-demo/lib/lambda/service-staff/create-order/index.js @@ -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}`,