Skip to content

Commit

Permalink
feat: add supplies to shelter index response
Browse files Browse the repository at this point in the history
  • Loading branch information
fagundesjg committed May 6, 2024
1 parent e3fc771 commit 5f0423f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/shelter/shelter.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ export class ShelterService {
shelteredPeople: true,
createdAt: true,
updatedAt: true,
supplies: {
take: 7,
orderBy: {
updatedAt: 'desc',
},
},
},
},
);
Expand Down

0 comments on commit 5f0423f

Please sign in to comment.