Skip to content

Commit

Permalink
return fileObj in uploaded and end event
Browse files Browse the repository at this point in the history
  • Loading branch information
bratelefant committed Aug 7, 2024
1 parent 69cddf9 commit d573741
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,8 @@ class FilesCollection extends FilesCollectionCore {

if (opts.eof) {
try {
return self._handleUploadSync(result, opts);
self._handleUploadSync(result, opts);
return result;
} catch (handleUploadErr) {
self._debug('[FilesCollection] [Write Method] [DDP] Exception:', handleUploadErr);
throw handleUploadErr;
Expand Down

0 comments on commit d573741

Please sign in to comment.