Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@uppy/transloadit: fix transloadit:result event #5231

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
@uppy/transloadit: fix transloadit:result event
Co-authored-by:: Marius Kleidl <marius@transloadit>
  • Loading branch information
Murderlon committed Jun 5, 2024
commit daeae956b3bf2504cfc79df81b7c607648d97114
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
Loading