File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -120,8 +120,8 @@ class ShelterSearch {
120
120
const queryData = {
121
121
AND : [
122
122
{ OR : this . search } ,
123
- { OR : this . shelterStatus } ,
124
- { OR : this . priority } ,
123
+ ... this . priority ,
124
+ ... this . shelterStatus ,
125
125
this . supplyCategoryIds ,
126
126
this . supplyIds ,
127
127
] ,
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ const ShelterSchema = z.object({
13
13
pix : z . string ( ) . nullable ( ) . optional ( ) ,
14
14
address : z . string ( ) . transform ( capitalize ) ,
15
15
petFriendly : z . boolean ( ) . nullable ( ) . optional ( ) ,
16
- shelteredPeople : z . number ( ) . nullable ( ) . optional ( ) ,
16
+ shelteredPeople : z . number ( ) . min ( 0 ) . nullable ( ) . optional ( ) ,
17
17
latitude : z . number ( ) . nullable ( ) . optional ( ) ,
18
18
longitude : z . number ( ) . nullable ( ) . optional ( ) ,
19
- capacity : z . number ( ) . nullable ( ) . optional ( ) ,
19
+ capacity : z . number ( ) . min ( 0 ) . nullable ( ) . optional ( ) ,
20
20
contact : z . string ( ) . nullable ( ) . optional ( ) ,
21
21
verified : z . boolean ( ) ,
22
22
createdAt : z . string ( ) ,
You can’t perform that action at this time.
0 commit comments