fix(logs): restore legacy history and cursor limits

This commit is contained in:
Hide_D committed 2026-07-31 18:09:27 +00:00
1 parent 132baf21cc
commit ab0c050847
3 files changed
+48 -10

No files matched your search

+2 -2
View File
@@ -414,10 +414,10 @@ export const generalRouter = router({
generalId: me.id,
scope: LogScope.GENERAL,
category: categoryMap[input.type],
...(input.beforeId ? { id: { lt: input.beforeId } } : {}),
...(input.type !== 'generalHistory' && input.beforeId ? { id: { lt: input.beforeId } } : {}),
},
orderBy: { id: 'desc' },
take: 24,
...(input.type === 'generalHistory' ? {} : { take: 24 }),
});
return {