chore: ticket service but not tested
This commit is contained in:
@@ -20,7 +20,7 @@ export class PaginationInterceptor implements NestInterceptor {
|
||||
|
||||
return next.handle().pipe(
|
||||
map((data) => {
|
||||
if (data.paginate || data.count) {
|
||||
if (data && (data.paginate || data.count)) {
|
||||
const { count, ...response } = data;
|
||||
this.logger.log(`paginate response from ${className}.${handlerName}`);
|
||||
const pager = this.formatPage(page, limit, count, request);
|
||||
|
||||
Reference in New Issue
Block a user