Skip to content

Commit

Permalink
start-with-0
Browse files Browse the repository at this point in the history
  • Loading branch information
uriva committed Sep 13, 2024
1 parent 857d317 commit d59067a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ const inject = <T extends TaskHandler>(
injectMedium(() => "websocket")<T>,
injectFileLimitMB(() => Infinity)<T>,
injectUserId(() => userId)<T>,
injectProgressBar((text: string) => {
injectProgressBar(async (text: string) => {
const key = makeKey();
await send({ key, text, percentage: 0 });
return Promise.resolve((percentage: number) =>
send({ key, text, percentage })
);
Expand Down

0 comments on commit d59067a

Please sign in to comment.