Skip to content

Commit

Permalink
fix(e2e): Update setupMockBopsSubmissionUrl() [skip pizza]
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Feb 2, 2024
1 parent 2a1fa6a commit 0b0460f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 5 additions & 7 deletions e2e/tests/api-driven/src/invite-to-pay/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,17 +163,15 @@ export async function cleanup({
const setupMockBopsSubmissionUrl = async (teamId: number) => {
await $admin.client.request(
gql`
mutation SetupTeamIntegrationE2E(
mutation UpdateTeamIntegrationE2E(
$stagingBopsSubmissionUrl: String
$teamId: Int
) {
insert_team_integrations_one(
object: {
team_id: $teamId
staging_bops_submission_url: $stagingBopsSubmissionUrl
}
update_team_integrations(
where: { team_id: { _eq: $teamId } }
_set: { staging_bops_submission_url: $stagingBopsSubmissionUrl }
) {
id
affected_rows
}
}
`,
Expand Down
4 changes: 4 additions & 0 deletions hasura.planx.uk/metadata/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1340,6 +1340,10 @@
- table:
name: team_integrations
schema: public
object_relationships:
- name: team
using:
foreign_key_constraint_on: team_id
select_permissions:
- role: api
permission:
Expand Down

0 comments on commit 0b0460f

Please sign in to comment.