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; }