Skip to content

Commit 0c7701f

Browse files
committed
feature: moved responsibility of dealing with visualization to the frontend in order to display volunteers on the home and shelter screens
1 parent 2895265 commit 0c7701f

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
@@ -121,23 +121,23 @@ export class ShelterService {
121121
createdAt: true,
122122
updatedAt: true,
123123
shelterSupplies: {
124-
where: {
125-
priority: {
126-
gte: SupplyPriority.Needing,
127-
},
128-
},
129-
take: 10,
130124
select: {
131125
priority: true,
132126
supply: {
133127
select: {
128+
id: true,
134129
name: true,
130+
supplyCategory: {
131+
select: {
132+
id: true,
133+
name: true,
134+
},
135+
},
136+
createdAt: true,
137+
updatedAt: true,
135138
},
136139
},
137140
},
138-
orderBy: {
139-
priority: 'desc',
140-
},
141141
},
142142
},
143143
},

0 commit comments

Comments
 (0)