fix: handle empty filter param and add created/updated fields for PB 0.25 compat

This commit is contained in:
2026-07-19 15:03:15 +00:00
parent a45a2a0bb2
commit 327c5bf733
48 changed files with 49 additions and 1684 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ export const GET = withAuth(async (request: NextRequest) => {
const pb = createPocketBaseClient();
const result = await pb.collection('habit_logs').getList(1, 1000, {
filter,
...(filter ? { filter } : {}),
sort: '-logged_at',
});