ccd3127c by Adam Heath

Remove ownerContent handling from fileSuccess.

Refs: #7621
1 parent e30e3209
......@@ -120,14 +120,9 @@ define(function(require) {
resultData: message,
});
console.log('UPLOAD COMPLETE', flowFile.flowObj.ownerContent);
flowFile.flowObj.ownerContent.set('statusId', 'CTNT_AVAILABLE');
flowFile.flowObj.ownerContent.save(function() {
console.log('MARKED', flowFile.flowObj.ownerContent, ' AVAILABLE');
if (this.model.get('handlers') && this.model.get('handlers').fileSuccess !== undefined) {
this.model.get('handlers').fileSuccess(flowFile);
}
});
if (this.model.get('handlers') && this.model.get('handlers').fileSuccess !== undefined) {
this.model.get('handlers').fileSuccess(flowFile);
}
}
},
fileError: function(flowFile, message, chunk) {
......