ccd3127c by Adam Heath

Remove ownerContent handling from fileSuccess.

Refs: #7621
1 parent e30e3209
...@@ -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) {
......