Fixed date search.
This commit is contained in:
parent
4d57642db4
commit
a35f026f44
@ -424,11 +424,11 @@ class TimeChainDataSqliteRecord extends Interface(InterfaceRecord) {
|
|||||||
switch (cmd){
|
switch (cmd){
|
||||||
case 'before':
|
case 'before':
|
||||||
const time_before = Math.floor(dayjs(parts[1]).toDate().getTime());
|
const time_before = Math.floor(dayjs(parts[1]).toDate().getTime());
|
||||||
where.push(`record.timestamp < ${time_before}`);
|
where.push(`records.timestamp < ${time_before}`);
|
||||||
break;
|
break;
|
||||||
case 'after':
|
case 'after':
|
||||||
const time_after = Math.floor(dayjs(parts[1]).toDate().getTime());
|
const time_after = Math.floor(dayjs(parts[1]).toDate().getTime());
|
||||||
where.push(`record.timestamp > ${time_after}`);
|
where.push(`records.timestamp > ${time_after}`);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user