Skip to content

Commit

Permalink
Merge pull request #4 from aars/handle-meta-parameter-as-callback
Browse files Browse the repository at this point in the history
Handle meta parameter as callback
  • Loading branch information
kusor committed Aug 11, 2015
2 parents b6f5352 + 582cfb2 commit 9edf1bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/workflow-pg-backend.js
Expand Up @@ -957,6 +957,10 @@ var WorkflowPgBackend = module.exports = function (config) {
if (typeof (val) === 'object' && val !== null && prop !== 'params') {
val = JSON.stringify(val);
}
if (typeof (meta) === 'function') {
callback = meta;
meta = {};
}

var vals = [val, uuid];
_execQuery(query, vals, function (err, res) {
Expand Down

0 comments on commit 9edf1bf

Please sign in to comment.