Skip to content

Commit

Permalink
EWC-313 postman QA flow section (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
Railag authored and mchepelev committed Nov 5, 2018
1 parent b663f4f commit 6d687d0
Show file tree
Hide file tree
Showing 2 changed files with 395 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/services/flow-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,17 @@ const _getUserFlows = async function (user, isCLI, transaction) {
userId: user.id
};

return await FlowManager.findAllExcludeFields(flow, transaction)
const flows = await FlowManager.findAllExcludeFields(flow, transaction);
return {
flows: flows
}
};

const _getAllFlows = async function (isCLI, transaction) {
return await FlowManager.findAll({}, transaction);
const flows = await FlowManager.findAll({}, transaction);
return {
flows: flows
}
};

const _checkForDuplicateName = async function (name, item, userId, transaction) {
Expand Down
Loading

0 comments on commit 6d687d0

Please sign in to comment.