transloadit: fix some emit() calls

This commit is contained in:
Renée Kooi 2017-08-22 12:21:07 +02:00
parent 055b201fe2
commit a58b2cf1a2
No known key found for this signature in database
GPG key ID: 30516CF2A8E63718

View file

@ -195,7 +195,7 @@ module.exports = class Transloadit extends Plugin {
}
})
})
this.core.bus.emit('transloadit:upload', uploadedFile, this.getAssembly(assemblyId))
this.core.emit('transloadit:upload', uploadedFile, this.getAssembly(assemblyId))
}
onResult (assemblyId, stepName, result) {
@ -206,7 +206,7 @@ module.exports = class Transloadit extends Plugin {
this.updateState({
results: this.state.results.concat(result)
})
this.core.bus.emit('transloadit:result', stepName, result, this.getAssembly(assemblyId))
this.core.emit('transloadit:result', stepName, result, this.getAssembly(assemblyId))
}
onAssemblyFinished (url) {