Skip to content

Commit

Permalink
fix: fix get logs api, get namespace from parameters instead of query (
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfengji authored and alexmt committed Oct 19, 2018
1 parent 0b61845 commit 94910ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export function create(
});

function getNamespace(req: express.Request) {
return forceNamespaceIsolation ? namespace : req.query.namespace;
return forceNamespaceIsolation ? namespace : (req.query.namespace || req.params.namespace);
}

function getWorkflow(ns: string, name: string): Promise<models.Workflow> {
Expand Down

0 comments on commit 94910ef

Please sign in to comment.