From dcfa65ec951219cd2855733e4c26f805d4e3805d Mon Sep 17 00:00:00 2001 From: AnthonyLzq Date: Sun, 8 Oct 2023 19:02:30 -0500 Subject: [PATCH] feat: improved log in case of getData error --- src/database/firebase/queries/realTime.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/database/firebase/queries/realTime.ts b/src/database/firebase/queries/realTime.ts index 92b4787..5c441b9 100644 --- a/src/database/firebase/queries/realTime.ts +++ b/src/database/firebase/queries/realTime.ts @@ -43,6 +43,14 @@ const getData = async ({ return value } catch (error) { + realTimeDebug( + `Error validation for: ${JSON.stringify({ + id, + moduleId, + sensorId + })}. Error: ${error}` + ) + return null } }