Skip to content

Commit

Permalink
Fix task
Browse files Browse the repository at this point in the history
  • Loading branch information
mligtenberg committed Feb 2, 2025
1 parent fdb378c commit d2420fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libs/messages/store/src/lib/messages-tasks.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export class MessagesTasksEffects {
messagesSending$ = createEffect(() => this.actions.pipe(
ofType(internalActions.messagesSending),
map(({ endpoint, messagesToSend, sendAmount, taskId }) => {
console.log('messagesSending', { endpoint, messagesToSend, sendAmount, taskId });
if (sendAmount > 0) {
return TasksActions.setProgress({
id: taskId,
Expand All @@ -92,10 +91,10 @@ export class MessagesTasksEffects {
initialProgress: 0
});
})
), { dispatch: false });
));

messagesSendSucceeded$ = createEffect(() => this.actions.pipe(
ofType(internalActions.messagesSendSucceeded),
map(({ taskId }) => TasksActions.completeTask({ id: taskId }))
), { dispatch: false });
));
}

0 comments on commit d2420fe

Please sign in to comment.