From cb9aa33ad0cb79b9d9eeb1940bf4cedfa702a9c8 Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Wed, 25 Aug 2021 09:43:16 +0530 Subject: [PATCH] fix: req.id undefined issues --- helpers/types/HoppRESTRequest.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helpers/types/HoppRESTRequest.ts b/helpers/types/HoppRESTRequest.ts index e1f55eefb..d7cabac16 100644 --- a/helpers/types/HoppRESTRequest.ts +++ b/helpers/types/HoppRESTRequest.ts @@ -127,9 +127,10 @@ export function translateToNewRequest(x: any): HoppRESTRequest { body, auth, v: RESTReqSchemaVersion, - id: x.id, // Pass-through Firebase Firestore ID } + if (x.id) result.id = x.id + return result } }