Skip to content

Commit

Permalink
fix: todo list sort (#39)
Browse files Browse the repository at this point in the history
Co-authored-by: Aiden-FE <[email protected]>
  • Loading branch information
Aiden-FE and Aiden-FE authored May 7, 2023
1 parent 325dc84 commit b1410e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/compass-service/src/modules/todo/todo.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class TodoService {
skip: pagination.skip,
take: pagination.take,
where,
orderBy: [{ updatedAt: 'desc' }],
orderBy: [{ isFinished: 'asc' }, { updatedAt: 'desc' }],
select: {
id: true,
title: true,
Expand Down

0 comments on commit b1410e7

Please sign in to comment.