Skip to content

Commit 2ccf427

Browse files
committed
wip
1 parent 794c7b8 commit 2ccf427

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/shelter/ShelterSearch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ class ShelterSearch {
120120
const queryData = {
121121
AND: [
122122
{ OR: this.search },
123-
{ OR: this.shelterStatus },
124-
{ OR: this.priority },
123+
...this.priority,
124+
...this.shelterStatus,
125125
this.supplyCategoryIds,
126126
this.supplyIds,
127127
],

src/shelter/types/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ const ShelterSchema = z.object({
1313
pix: z.string().nullable().optional(),
1414
address: z.string().transform(capitalize),
1515
petFriendly: z.boolean().nullable().optional(),
16-
shelteredPeople: z.number().nullable().optional(),
16+
shelteredPeople: z.number().min(0).nullable().optional(),
1717
latitude: z.number().nullable().optional(),
1818
longitude: z.number().nullable().optional(),
19-
capacity: z.number().nullable().optional(),
19+
capacity: z.number().min(0).nullable().optional(),
2020
contact: z.string().nullable().optional(),
2121
verified: z.boolean(),
2222
createdAt: z.string(),

0 commit comments

Comments
 (0)