moov-io / achgateway

Payment gateway enabling automated ACH operations in a distributed and fault tolerant way.
https://moov-io.github.io/achgateway/
Apache License 2.0
52 stars 19 forks source link

pipeline: FileUploaded events don't populate Filename #147

Closed adamdecaf closed 4 months ago

adamdecaf commented 1 year ago

FileUploaded events don't populate the Filename field, which looks tricky because pending files can be merged into multiple outgoing files.

Code: https://github.com/moov-io/achgateway/blob/v0.16.10/internal/pipeline/aggregate.go#L219-L225

adamdecaf commented 1 year ago

We'll need to call .emitFilesUploaded for each merged file rather than at the end or call newUploadedFiles multiple times.