Skip to content

Commit

Permalink
fix: api client should be able to select * from payment_status (#2527)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak authored Dec 1, 2023
1 parent 0e388c1 commit c5c5214
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions hasura.planx.uk/metadata/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,18 @@
- flow_id
- session_id
- amount
select_permissions:
- role: api
permission:
columns:
- payment_id
- status
- team_slug
- created_at
- flow_id
- session_id
- amount
filter: {}
- table:
schema: public
name: payment_status_enum
Expand Down
6 changes: 3 additions & 3 deletions hasura.planx.uk/tests/payment_status.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ describe("payment_status", () => {
i = await introspectAs("api");
});

test("cannot query payment_status", () => {
expect(i.queries).not.toContain("payment_status");
})
test("can query payment_status", () => {
expect(i.queries).toContain("payment_status");
});

test("can insert payment_status", () => {
expect(i.mutations).toContain("insert_payment_status");
Expand Down

0 comments on commit c5c5214

Please sign in to comment.