Skip to content

Commit

Permalink
fix: type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
emiliosheinz committed May 14, 2024
1 parent edc68cc commit ddf0764
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/server/api/routers/shelter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ export const shelterRouter = createTRPCRouter({
donations: result.donations,
volunteers: result.volunteers,
social: {
twitter: result.twitter ?? undefined,
instagram: result.instagram ?? undefined,
facebook: result.facebook ?? undefined,
website: result.website ?? undefined,
},
address: {
cep: result.addressZip,
Expand All @@ -59,10 +57,8 @@ export const shelterRouter = createTRPCRouter({
occupancy: +input.occupancy,
donations: input.donations,
volunteers: input.volunteers,
twitter: input.social.twitter,
instagram: input.social.instagram,
facebook: input.social.facebook,
website: input.social.website,
addressZip: input.address.cep,
addressStreet: input.address.street,
addressNumber: input.address.number,
Expand Down Expand Up @@ -99,10 +95,8 @@ export const shelterRouter = createTRPCRouter({
occupancy: +input.occupancy,
donations: input.donations,
volunteers: input.volunteers,
twitter: input.social.twitter,
instagram: input.social.instagram,
facebook: input.social.facebook,
website: input.social.website,
addressZip: input.address.cep,
addressStreet: input.address.street,
addressNumber: input.address.number,
Expand Down

0 comments on commit ddf0764

Please sign in to comment.