fix(logs): restore legacy history and cursor limits

This commit is contained in:
2026-07-31 18:09:27 +00:00
parent 132baf21cc
commit ab0c050847
3 changed files with 48 additions and 10 deletions
+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 {