Skip to content

Commit

Permalink
fix: tmp fix for PUT domains members
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Nov 13, 2024
1 parent e0dc69c commit 07011cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/web/my-account/retrieve-aliases.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ async function retrieveAliases(ctx, next) {
? // eslint-disable-next-line unicorn/no-array-callback-reference
Aliases.find(query)
.limit(ctx.query.limit)
.skip(ctx.paginate.skip)
.skip(ctx?.paginate?.skip)
.sort(isSANB(ctx.query.sort) ? ctx.query.sort : 'created_at')
.populate(
'user',
Expand Down Expand Up @@ -202,7 +202,7 @@ async function retrieveAliases(ctx, next) {
// eslint-disable-next-line unicorn/no-array-callback-reference
Aliases.find(query)
.limit(ctx.query.limit)
.skip(ctx.paginate.skip)
.skip(ctx?.paginate?.skip)
.sort(isSANB(ctx.query.sort) ? ctx.query.sort : 'name')
.populate(
'user',
Expand Down

0 comments on commit 07011cf

Please sign in to comment.