Skip to content

Commit

Permalink
Revert "fix: flatten blob gen + upload actions to ensure null blobs c…
Browse files Browse the repository at this point in the history
…orrectly throw errors and bubble up"

This reverts commit 834ebb0.
  • Loading branch information
robinpyon committed May 29, 2022
1 parent 53da5ef commit 7a387c4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/modules/uploads/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ export const uploadsAssetStartEpic: MyEpic = action$ =>
const {file, uploadItem} = action.payload

return merge(
// Generate low res preview
of(null).pipe(
// Generate low res preview
mergeMap(() => generatePreviewBlobUrl$(file)),
mergeMap(url => {
return of(
Expand All @@ -134,8 +134,10 @@ export const uploadsAssetStartEpic: MyEpic = action$ =>
hash: uploadItem.hash
})
)
}),
// Upload asset and receive progress / complete events
})
),
// Upload asset and receive progress / complete events
of(null).pipe(
// delay(500000), // debug uploads
mergeMap(() => uploadAsset$(uploadItem.assetType, file, uploadItem.hash)),
takeUntil(
Expand Down

0 comments on commit 7a387c4

Please sign in to comment.