Skip to content

Commit

Permalink
feat: limit customer service action log page size to 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
sdjdd committed Mar 4, 2024
1 parent 134347a commit 54c488b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion next/api/src/controller/customer-service-action-log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class CustomerServiceActionLogController {
@Query('from', ParseDatePipe) from: Date | undefined,
@Query('to', ParseDatePipe) to: Date | undefined,
@Query('operatorIds', ParseCsvPipe) operatorIds: string[] | undefined,
@Query('pageSize', new ParseIntPipe({ min: 1, max: 10000 })) pageSize = 10,
@Query('pageSize', new ParseIntPipe({ min: 1, max: 1000 })) pageSize = 10,
@Query('desc', ParseBoolPipe) desc: boolean | undefined
) {
if (!from || !to) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class ActionLogCollector<T> {
return;
}

const pageSize = 5000;
const pageSize = 1000;

try {
const data = await getCustomerServiceActionLogs({
Expand Down

0 comments on commit 54c488b

Please sign in to comment.