From a35f026f44c005fa0840de53d425c667f94d7a45 Mon Sep 17 00:00:00 2001 From: Jason Tudisco Date: Mon, 14 Feb 2022 04:59:18 -0600 Subject: [PATCH] Fixed date search. --- src/data/sqlite.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/sqlite.js b/src/data/sqlite.js index ac951f2..ba1d4d0 100644 --- a/src/data/sqlite.js +++ b/src/data/sqlite.js @@ -424,11 +424,11 @@ class TimeChainDataSqliteRecord extends Interface(InterfaceRecord) { switch (cmd){ case 'before': const time_before = Math.floor(dayjs(parts[1]).toDate().getTime()); - where.push(`record.timestamp < ${time_before}`); + where.push(`records.timestamp < ${time_before}`); break; case 'after': const time_after = Math.floor(dayjs(parts[1]).toDate().getTime()); - where.push(`record.timestamp > ${time_after}`); + where.push(`records.timestamp > ${time_after}`); break; }