Skip to content

Instantly share code, notes, and snippets.

@pchab
Created June 30, 2021 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pchab/8932c9312125739c37fe26cf713868a6 to your computer and use it in GitHub Desktop.
Save pchab/8932c9312125739c37fe26cf713868a6 to your computer and use it in GitHub Desktop.
validation code without throttling
@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