From 1fa6f245924fda636d5aa3c74c879c94efb2134d Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Mon, 18 Nov 2024 22:34:59 -0500 Subject: [PATCH] Temp Fix GetTime Issue --- src/equicordplugins/messageLoggerEnhanced/utils/parseQuery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/equicordplugins/messageLoggerEnhanced/utils/parseQuery.ts b/src/equicordplugins/messageLoggerEnhanced/utils/parseQuery.ts index bdfff46a..6011fd06 100644 --- a/src/equicordplugins/messageLoggerEnhanced/utils/parseQuery.ts +++ b/src/equicordplugins/messageLoggerEnhanced/utils/parseQuery.ts @@ -107,7 +107,7 @@ export const doesMatch = (type: typeof validIdSearchTypes[number], value: string case "around": case "near": case "during": - return Math.abs(new Date(message.timestamp).getTime() - new Date(value).getTime()) < 1000 * 60 * 60 * 24; + return Math.abs(new Date(message.timestamp)?.getTime() - new Date(value)?.getTime()) < 1000 * 60 * 60 * 24; case "has": { switch (value) { case "attachment":