mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 13:23:28 -05:00
Temp Fix GetTime Issue
This commit is contained in:
parent
2fec2d7c3a
commit
1fa6f24592
1 changed files with 1 additions and 1 deletions
|
@ -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":
|
||||
|
|
Loading…
Reference in a new issue