Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Commit

Permalink
Update proto api (#188)
Browse files Browse the repository at this point in the history
* Update proto api

* Apply proto api changes to web
  • Loading branch information
feedmeapples committed Nov 11, 2020
1 parent eb249b7 commit 2db9cc6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion proto
2 changes: 1 addition & 1 deletion server/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ router.get('/api/namespaces', async function(ctx) {

router.get('/api/namespaces/:namespace', async function(ctx) {
ctx.body = await wfClient.describeNamespace(
{ name: ctx.params.namespace },
{ namespace: ctx.params.namespace },
{ accessToken: extractAccessToken(ctx) }
);
});
Expand Down
4 changes: 2 additions & 2 deletions server/workflow-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,10 @@ function WorkflowClient() {
}

WorkflowClient.prototype.describeNamespace = async function(
{ name },
{ namespace },
metadata
) {
const req = { name };
const req = { namespace };

const res = await this.client.describeNamespaceAsync(
req,
Expand Down

0 comments on commit 2db9cc6

Please sign in to comment.