Skip to content

Commit

Permalink
fix: ordering the focus area by creadtedAt in desc order
Browse files Browse the repository at this point in the history
  • Loading branch information
navneethkrish committed Sep 27, 2024
1 parent 2bd6552 commit 337826a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/web-api/src/focus-areas/focus-areas.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export class FocusAreasService {
include: {
children: this.buildQueryByLevel(4, type, query), // level denotes depth of children.
...this.buildAncestorFocusAreasFilterByType(type, query)
},
orderBy: {
createdAt: "desc"
}
});
return result;
Expand Down

0 comments on commit 337826a

Please sign in to comment.