Skip to content

Commit 83ab015

Browse files
authored
Merge pull request #17 from MatheusDubin/add-volunteers-section-to-home-and-shelter
feature: moved responsibility of dealing with visualization to the fr…
2 parents a978c74 + 0c7701f commit 83ab015

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/shelter/shelter.service.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,23 +120,23 @@ export class ShelterService {
120120
createdAt: true,
121121
updatedAt: true,
122122
shelterSupplies: {
123-
where: {
124-
priority: {
125-
gte: SupplyPriority.Needing,
126-
},
127-
},
128-
take: 10,
129123
select: {
130124
priority: true,
131125
supply: {
132126
select: {
127+
id: true,
133128
name: true,
129+
supplyCategory: {
130+
select: {
131+
id: true,
132+
name: true,
133+
},
134+
},
135+
createdAt: true,
136+
updatedAt: true,
134137
},
135138
},
136139
},
137-
orderBy: {
138-
priority: 'desc',
139-
},
140140
},
141141
},
142142
},

0 commit comments

Comments
 (0)