File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
10
10
UpdateShelterSchema ,
11
11
} from './types' ;
12
12
import { SeachQueryProps } from '@/decorators/search-query/types' ;
13
+ import { SupplyPriority } from 'src/supply/types' ;
13
14
14
15
@Injectable ( )
15
16
export class ShelterService {
@@ -70,6 +71,11 @@ export class ShelterService {
70
71
latitude : true ,
71
72
longitude : true ,
72
73
shelterSupplies : {
74
+ where : {
75
+ priority : {
76
+ gt : SupplyPriority . UnderControl ,
77
+ } ,
78
+ } ,
73
79
select : {
74
80
priority : true ,
75
81
supply : {
@@ -119,6 +125,11 @@ export class ShelterService {
119
125
createdAt : true ,
120
126
updatedAt : true ,
121
127
shelterSupplies : {
128
+ where : {
129
+ priority : {
130
+ gt : SupplyPriority . UnderControl ,
131
+ } ,
132
+ } ,
122
133
select : {
123
134
priority : true ,
124
135
supply : {
@@ -193,6 +204,11 @@ export class ShelterService {
193
204
createdAt : true ,
194
205
updatedAt : true ,
195
206
shelterSupplies : {
207
+ where : {
208
+ priority : {
209
+ gt : SupplyPriority . UnderControl ,
210
+ } ,
211
+ } ,
196
212
select : {
197
213
priority : true ,
198
214
supply : {
You can’t perform that action at this time.
0 commit comments