Fix: sort/filter/expand nach autodate-Feldern wiederhergestellt
This commit is contained in:
parent
37364c54e4
commit
86cab10c70
2 changed files with 4 additions and 2 deletions
|
|
@ -24,7 +24,9 @@
|
||||||
const dateStr = today.toISOString().slice(0, 19).replace('T', ' ');
|
const dateStr = today.toISOString().slice(0, 19).replace('T', ' ');
|
||||||
|
|
||||||
const result = await pb.collection('check_logs').getList(1, 50, {
|
const result = await pb.collection('check_logs').getList(1, 50, {
|
||||||
sort: '-id'
|
filter: `tenant = '${tenantId}' && created >= '${dateStr}'`,
|
||||||
|
expand: 'station',
|
||||||
|
sort: '-created'
|
||||||
});
|
});
|
||||||
|
|
||||||
logs = result.items;
|
logs = result.items;
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
const result = await pb.collection('check_logs').getList(p, PER_PAGE, {
|
const result = await pb.collection('check_logs').getList(p, PER_PAGE, {
|
||||||
filter: `tenant = '${tenantId}'`,
|
filter: `tenant = '${tenantId}'`,
|
||||||
expand: 'station',
|
expand: 'station',
|
||||||
sort: '-id'
|
sort: '-created'
|
||||||
});
|
});
|
||||||
logs = result.items;
|
logs = result.items;
|
||||||
page = p;
|
page = p;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue