Skip to content

Commit

Permalink
remove the site property from the request object
Browse files Browse the repository at this point in the history
  • Loading branch information
alishaevn committed Jan 12, 2024
1 parent 2609de2 commit 421b935
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
3 changes: 1 addition & 2 deletions cypress/fixtures/one-request/files.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
"email": "[email protected]",
"title": "Frontend Dev",
"company": "",
"site": "{\"name\"=>\"Cell Based Assays\", \"billing_same_as_shipping\"=>true}",
"image": "https://avatars.scientist.com/avatars/0d93b3808f701fc3dbde5002a80c2475/S C/xs?time=1677774999"
}
}
]
}
}
4 changes: 1 addition & 3 deletions cypress/fixtures/one-request/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"email": "[email protected]",
"title": "Master tester",
"company": "",
"site": "Asia",
"image": "https://avatars.scientist.com/avatars/20c7e703deca8fcabb2df42096142740/S T/xs?time=1677774999"
},
"proposal_ref": {
Expand Down Expand Up @@ -67,9 +66,8 @@
"email": "[email protected]",
"title": "Frontend Dev",
"company": "",
"site": "{\"name\"=>\"Cell Based Assays\", \"billing_same_as_shipping\"=>true}",
"image": "https://avatars.scientist.com/avatars/0d93b3808f701fc3dbde5002a80c2475/S C/xs?time=1677774999"
}
}
]
}
}
4 changes: 0 additions & 4 deletions utils/api/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,6 @@ const requestData = ({request, shipping, billing}) => {
/* eslint-disable camelcase */
provider_ids: [process.env.NEXT_PUBLIC_PROVIDER_ID],
proposed_deadline_str: request.proposedDeadline,
site: {
billing_same_as_shipping: request.billingSameAsShipping,
name: process.env.NEXT_PUBLIC_PROVIDER_NAME,
},
shipping_address_attributes: {
city: shipping.city,
country: shipping.country,
Expand Down

0 comments on commit 421b935

Please sign in to comment.