Remove ownerContent handling from fileSuccess.
Refs: #7621
Showing
1 changed file
with
3 additions
and
8 deletions
... | @@ -120,14 +120,9 @@ define(function(require) { | ... | @@ -120,14 +120,9 @@ define(function(require) { |
120 | resultData: message, | 120 | resultData: message, |
121 | }); | 121 | }); |
122 | 122 | ||
123 | console.log('UPLOAD COMPLETE', flowFile.flowObj.ownerContent); | 123 | if (this.model.get('handlers') && this.model.get('handlers').fileSuccess !== undefined) { |
124 | flowFile.flowObj.ownerContent.set('statusId', 'CTNT_AVAILABLE'); | 124 | this.model.get('handlers').fileSuccess(flowFile); |
125 | flowFile.flowObj.ownerContent.save(function() { | 125 | } |
126 | console.log('MARKED', flowFile.flowObj.ownerContent, ' AVAILABLE'); | ||
127 | if (this.model.get('handlers') && this.model.get('handlers').fileSuccess !== undefined) { | ||
128 | this.model.get('handlers').fileSuccess(flowFile); | ||
129 | } | ||
130 | }); | ||
131 | } | 126 | } |
132 | }, | 127 | }, |
133 | fileError: function(flowFile, message, chunk) { | 128 | fileError: function(flowFile, message, chunk) { | ... | ... |
-
Please register or sign in to post a comment