diff --git a/backend/src/seeds/graphql/mutations.ts b/backend/src/seeds/graphql/mutations.ts index 87231531f..965b52bec 100644 --- a/backend/src/seeds/graphql/mutations.ts +++ b/backend/src/seeds/graphql/mutations.ts @@ -79,8 +79,8 @@ export const sendActivationEmail = gql` ` export const sendCoins = gql` - mutation ($identifier: String!, $amount: Decimal!, $memo: String!) { - sendCoins(identifier: $identifier, amount: $amount, memo: $memo) + mutation ($recipientIdentifier: String!, $amount: Decimal!, $memo: String!) { + sendCoins(recipientIdentifier: $recipientIdentifier, amount: $amount, memo: $memo) } ` diff --git a/backend/src/seeds/graphql/queries.ts b/backend/src/seeds/graphql/queries.ts index 1b5a84d45..b7ef87aa8 100644 --- a/backend/src/seeds/graphql/queries.ts +++ b/backend/src/seeds/graphql/queries.ts @@ -122,10 +122,13 @@ export const communities = gql` query { communities { id + foreign name - url description - registerUrl + url + creationDate + uuid + authenticatedAt } } ` @@ -146,21 +149,6 @@ export const getCommunities = gql` } ` -export const getCommunitySelections = gql` - query { - communities { - id - foreign - name - description - url - creationDate - uuid - authenticatedAt - } - } -` - export const queryTransactionLink = gql` query ($code: String!) { queryTransactionLink(code: $code) { diff --git a/e2e-tests/cypress/support/step_definitions/send_coin_steps.ts b/e2e-tests/cypress/support/step_definitions/send_coin_steps.ts index f3bcfe36c..dcf491e45 100644 --- a/e2e-tests/cypress/support/step_definitions/send_coin_steps.ts +++ b/e2e-tests/cypress/support/step_definitions/send_coin_steps.ts @@ -49,10 +49,14 @@ When('the user submits the transaction by confirming', () => { cy.wrap(interception.request.body).should( 'have.property', 'query', - `mutation ($identifier: String!, $amount: Decimal!, $memo: String!) { - sendCoins(identifier: $identifier, amount: $amount, memo: $memo) -} -`, + `mutation ($recipientCommunityIdentifier: String!, $recipientIdentifier: String!, $amount: Decimal!, $memo: String!) { + sendCoins( + recipientCommunityIdentifier: $recipientCommunityIdentifier + recipientIdentifier: $recipientIdentifier + amount: $amount + memo: $memo + ) + }`, ) cy.wrap(interception.response?.body) .should('have.nested.property', 'data.sendCoins')