Skip to content

Commit

Permalink
feat: introduced ordering the focus area by created at
Browse files Browse the repository at this point in the history
  • Loading branch information
navneethkrish committed Aug 2, 2024
1 parent 35e2588 commit c354db4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 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 @@ -24,13 +24,19 @@ export class FocusAreasService {
include: {
children: true,
...this.buildAncestorFocusAreasFilterByType(type, query)
},
orderBy: {
createdAt: "desc"
}
};
}
return {
include: {
children: this.buildQueryByLevel(level - 1, type, query),
...this.buildAncestorFocusAreasFilterByType(type, query)
},
orderBy: {
createdAt: "desc"
}
};
}
Expand Down

0 comments on commit c354db4

Please sign in to comment.