Skip to content

Commit

Permalink
Merge pull request #7 from wirehead/pg-3-to-pg-6
Browse files Browse the repository at this point in the history
Updating to pg v6.0.1
  • Loading branch information
kusor committed Aug 1, 2016
2 parents 49efe9d + df16c0a commit 3710f32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions lib/workflow-pg-backend.js
Expand Up @@ -305,9 +305,13 @@ var WorkflowPgBackend = module.exports = function (config) {
Object.keys(row).forEach(function (p) {
if (p === 'chain' || p === 'onerror' ||
p === 'oncancel') {
workflow[p] = JSON.parse(row[p]);
if (row[p] !== null) {
workflow[p] = JSON.parse(row[p]);
}
} else {
workflow[p] = row[p];
if (row[p] !== null) {
workflow[p] = row[p];
}
}
});
return callback(null, workflow);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -16,7 +16,7 @@
"node": ">=0.8"
},
"dependencies": {
"pg": "3.3.0",
"pg": "6.0.1",
"bunyan": "0.23.1",
"vasync": "1.3.3",
"node-uuid": "1.4.0",
Expand Down

0 comments on commit 3710f32

Please sign in to comment.