Fixed date search.

This commit is contained in:
Jason Tudisco 2022-02-14 04:59:18 -06:00
parent 4d57642db4
commit a35f026f44

View File

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