Skip to content

Commit

Permalink
don't include action on initiate request #17
Browse files Browse the repository at this point in the history
  • Loading branch information
timwis committed Sep 30, 2016
1 parent fec71ac commit 46810b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/models/case.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = {
const { workflowSlug, actionSlug, payload, caseId, token } = data
let uri = `${endpoint}${workflowSlug}/`
if (caseId) uri += `${caseId}/`
if (actionSlug) uri += `${actionSlug}/`
if (caseId && actionSlug) uri += `${actionSlug}/`
if (token) uri += `?token=${token}`

http.post(uri, { json: payload }, (err, response, body) => {
Expand Down

0 comments on commit 46810b0

Please sign in to comment.