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