Fixed date search.
This commit is contained in:
parent
4d57642db4
commit
a35f026f44
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user