Skip to content

Commit

Permalink
fix(server): use _id to sort logs instead of created_at (#1073)
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow authored Apr 24, 2023
1 parent dd0c3d7 commit 7a87bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/function/function.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export class FunctionService {
.find(query, {
limit,
skip: (page - 1) * limit,
sort: { created_at: -1 },
sort: { _id: -1 },
})
.toArray()

Expand Down

0 comments on commit 7a87bea

Please sign in to comment.