Skip to content

Commit e2c6242

Browse files
kelvinsbHelioDantas
authored andcommitted
fix: remove unused and unauthorized contact field on list route
1 parent f1416e5 commit e2c6242

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/shelter/shelter.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ export class ShelterService {
144144
pix: true,
145145
address: true,
146146
capacity: true,
147-
contact: true,
148147
petFriendly: true,
149148
shelteredPeople: true,
150149
prioritySum: true,

src/shelter/types/search.types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ export interface IFilterFormProps {
1212
tags: ShelterTagInfo | null;
1313
}
1414

15-
export type SearchShelterTagResponse = Shelter & {
15+
type AllowedShelterFields = Omit<Shelter, 'contact'>;
16+
17+
export type SearchShelterTagResponse = AllowedShelterFields & {
1618
shelterSupplies: (ShelterSupply & { supply: Supply })[];
1719
};
1820

0 commit comments

Comments
 (0)