Skip to content

Commit

Permalink
Update packages/backend/src/shared/baseModel.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Sabine Schaller <[email protected]>
  • Loading branch information
JoblersTune and sabineschaller authored Oct 24, 2023
1 parent f0360cb commit b10c2bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/backend/src/shared/baseModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ class PaginationQueryBuilder<M extends Model, R = M[]> extends QueryBuilder<
[this.modelClass().tableName, pagination.before]
)
.orderBy([
{ column: 'createdAt', order: order },
{ column: 'id', order: order }
{ column: 'createdAt', order },
{ column: 'id', order }
])
.limit(last)
.runAfter((models) => {
Expand Down

0 comments on commit b10c2bc

Please sign in to comment.