Skip to content

Commit

Permalink
storing the state doc under doc.banzai_states
Browse files Browse the repository at this point in the history
  • Loading branch information
pgte committed Oct 20, 2011
1 parent 8745144 commit 8136da1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ function Pipeline(name, options) {
(function() {
var stateDocId = stateDoc._id || stateDoc._id;
if (stateDocId) {
if (! doc.banzai_states) { doc.banzai__states = []; }
if (! doc.banzai_states) { doc.banzai_states = []; }
if (doc.banzai_states.indexOf(stateDocId) === -1) {
doc.banzai__states.push(stateDocId);
doc.banzai_states.push(stateDocId);
}
}
}());
Expand Down

0 comments on commit 8136da1

Please sign in to comment.