Skip to content

Commit

Permalink
fix: fixed API endpoint middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Aug 21, 2024
1 parent ca43c3c commit 133036e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/api/v1/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ router
: true;
if (!hasPagination) return next();
if (typeof ctx.query.limit === 'undefined') ctx.query.limit = 1000;
return paginate.middleware(50, 1000);
return paginate.middleware(50, 1000)(ctx, next);
},
web.myAccount.retrieveDomains
)
Expand Down Expand Up @@ -290,7 +290,7 @@ router
: true;
if (!hasPagination) return next();
if (typeof ctx.query.limit === 'undefined') ctx.query.limit = 1000;
return paginate.middleware(50, 1000);
return paginate.middleware(50, 1000)(ctx, next);
},
web.myAccount.retrieveAliases,
api.v1.aliases.list
Expand Down

0 comments on commit 133036e

Please sign in to comment.