Temp Fix GetTime Issue

This commit is contained in:
thororen1234 2024-11-18 22:34:59 -05:00
parent 2fec2d7c3a
commit 1fa6f24592

View file

@ -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":