Fix: sort/filter/expand nach autodate-Feldern wiederhergestellt

This commit is contained in:
rene 2026-05-17 14:22:42 +02:00
parent 37364c54e4
commit 86cab10c70
2 changed files with 4 additions and 2 deletions

View file

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

View file

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