Skip to content

Commit e9693f0

Browse files
committed
fix: apply pagination to admin webhook history filtering
1 parent 9e8a8bd commit e9693f0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/routes/admin/apisearcher.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,8 @@ export const setupAPISearchRoutes = function(app: Express, prisma: PrismaClient)
849849
orderBy: {
850850
received_at: 'desc',
851851
},
852+
take: itemsPerPage,
853+
skip: offset,
852854
});
853855
return res.json({
854856
// Replace delivery_id with id (for apisearcher compatibility)
@@ -887,6 +889,8 @@ export const setupAPISearchRoutes = function(app: Express, prisma: PrismaClient)
887889
orderBy: {
888890
received_at: 'desc',
889891
},
892+
take: itemsPerPage,
893+
skip: offset,
890894
});
891895
return res.json({
892896
// Replace delivery_id with id (for apisearcher compatibility)
@@ -929,6 +933,8 @@ export const setupAPISearchRoutes = function(app: Express, prisma: PrismaClient)
929933
orderBy: {
930934
received_at: 'desc',
931935
},
936+
take: itemsPerPage,
937+
skip: offset,
932938
});
933939
return res.json({
934940
// Replace delivery_id with id (for apisearcher compatibility)

0 commit comments

Comments
 (0)