From 421b935cb77a5031d18a8ddd8fe2e1e1d7f577dc Mon Sep 17 00:00:00 2001 From: Alisha Evans Date: Fri, 12 Jan 2024 13:11:26 -0600 Subject: [PATCH] remove the `site` property from the request object also removed from the tests. ref: https://assaydepot.slack.com/archives/CF6490Y80/p1705017664697359?thread_ts=1704996805.983419&cid=CF6490Y80 --- cypress/fixtures/one-request/files.json | 3 +-- cypress/fixtures/one-request/messages.json | 4 +--- utils/api/requests.js | 4 ---- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/cypress/fixtures/one-request/files.json b/cypress/fixtures/one-request/files.json index e21dbf14..5c8fd4bb 100644 --- a/cypress/fixtures/one-request/files.json +++ b/cypress/fixtures/one-request/files.json @@ -16,9 +16,8 @@ "email": "summer@scientist.com", "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" } } ] -} \ No newline at end of file +} diff --git a/cypress/fixtures/one-request/messages.json b/cypress/fixtures/one-request/messages.json index a348136e..222addbf 100644 --- a/cypress/fixtures/one-request/messages.json +++ b/cypress/fixtures/one-request/messages.json @@ -16,7 +16,6 @@ "email": "sherman@scientist.com", "title": "Master tester", "company": "", - "site": "Asia", "image": "https://avatars.scientist.com/avatars/20c7e703deca8fcabb2df42096142740/S T/xs?time=1677774999" }, "proposal_ref": { @@ -67,9 +66,8 @@ "email": "summer@scientist.com", "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" } } ] -} \ No newline at end of file +} diff --git a/utils/api/requests.js b/utils/api/requests.js index 4781372f..55445f71 100644 --- a/utils/api/requests.js +++ b/utils/api/requests.js @@ -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,