Created
June 30, 2021 17:05
-
-
Save pchab/8932c9312125739c37fe26cf713868a6 to your computer and use it in GitHub Desktop.
validation code without throttling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Injectable() | |
export class ValidationCodeSagas { | |
@Saga() | |
ValidationCodeRequested = (event$: Observable<IEvent>): Observable<SendValidationCodeCommand> => { | |
return event$.pipe( | |
ofType(ValidationCodeGeneratedEvent), | |
map(({ payload }) => new SendValidationCodeCommand(payload)), | |
); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment