Skip to content

Commit

Permalink
@uppy/transloadit: fix transloadit:result event (#5231)
Browse files Browse the repository at this point in the history
Co-authored-by:: Marius Kleidl <marius@transloadit>
  • Loading branch information
Murderlon committed Jun 10, 2024
1 parent 7aee668 commit ce66e12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@uppy/transloadit/src/Assembly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ class TransloaditAssembly extends Emitter {

this.#sse.addEventListener('assembly_upload_finished', (e) => {
const file = JSON.parse(e.data)
this.emit('upload', file)
this.status.uploads.push(file)
this.emit('upload', file)
})

this.#sse.addEventListener('assembly_result_finished', (e) => {
const [stepName, result] = JSON.parse(e.data)
this.emit('result', stepName, result)
;(this.status.results[stepName] ??= []).push(result)
this.emit('result', stepName, result)
})

this.#sse.addEventListener('assembly_execution_progress', (e) => {
Expand Down

0 comments on commit ce66e12

Please sign in to comment.