Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh authored Nov 27, 2024
2 parents 4bb936b + d847b1a commit 67d2e27
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions src/components/Docs/SnippetViewer/CheckRequestViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,7 @@ body = ClientCheckRequest(
? `
contextual_tuples=[
${contextualTuples
.map(
(tuple) => `ClientTupleKey(user="${tuple.user}", relation="${tuple.relation}", object="${tuple.object}")`,
)
.map((tuple) => `ClientTuple(user="${tuple.user}", relation="${tuple.relation}", object="${tuple.object}")`)
.join(',\n ')}
],`
: ``
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,7 @@ body = ClientListObjectsRequest(
? `
contextual_tuples=[
${contextualTuples
.map(
(tuple) => `ClientTupleKey(user="${tuple.user}", relation="${tuple.relation}", object="${tuple.object}")`,
)
.map((tuple) => `ClientTuple(user="${tuple.user}", relation="${tuple.relation}", object="${tuple.object}")`)
.join(',\n ')}
],`
: ``
Expand Down
4 changes: 1 addition & 3 deletions src/components/Docs/SnippetViewer/ListUsersRequestViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,7 @@ var response = await fgaClient.ListUsers(body, options);
? `
contextual_tuples=[
${contextualTuples
.map(
(tuple) => `ClientTupleKey(user="${tuple.user}", relation="${tuple.relation}", object="${tuple.object}")`,
)
.map((tuple) => `ClientTuple(user="${tuple.user}", relation="${tuple.relation}", object="${tuple.object}")`)
.join(',\n ')}
],`
: ``
Expand Down

0 comments on commit 67d2e27

Please sign in to comment.