File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import {
10
10
UpdateShelterSchema ,
11
11
} from './types' ;
12
12
import { SeachQueryProps } from '@/decorators/search-query/types' ;
13
- import { SupplyPriority } from '../supply/types' ;
14
13
15
14
@Injectable ( )
16
15
export class ShelterService {
@@ -194,23 +193,23 @@ export class ShelterService {
194
193
createdAt : true ,
195
194
updatedAt : true ,
196
195
shelterSupplies : {
197
- where : {
198
- priority : {
199
- gte : SupplyPriority . Needing ,
200
- } ,
201
- } ,
202
- take : 10 ,
203
196
select : {
204
197
priority : true ,
205
198
supply : {
206
199
select : {
200
+ id : true ,
207
201
name : true ,
202
+ supplyCategory : {
203
+ select : {
204
+ id : true ,
205
+ name : true ,
206
+ } ,
207
+ } ,
208
+ createdAt : true ,
209
+ updatedAt : true ,
208
210
} ,
209
211
} ,
210
212
} ,
211
- orderBy : {
212
- priority : 'desc' ,
213
- } ,
214
213
} ,
215
214
} ,
216
215
} ) ;
You can’t perform that action at this time.
0 commit comments