Skip to content

Commit

Permalink
Changed the map type used when setting user preferences [comixed#21]
Browse files Browse the repository at this point in the history
 - Switched to mergeMap to allow multiple simultaneous calls.
  • Loading branch information
mcpierce committed Jun 30, 2020
1 parent 0bc22eb commit d9c5e40
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -28,7 +28,7 @@ import { LoggerService } from '@angular-ru/logger';
import { MessageService } from 'primeng/api';
import { Observable, of } from 'rxjs';

import { catchError, map, switchMap, tap } from 'rxjs/operators';
import { catchError, map, mergeMap, switchMap, tap } from 'rxjs/operators';
import * as AuthenticationActions from '../actions/authentication.actions';
import {
AuthCheckState,
Expand Down Expand Up @@ -176,7 +176,7 @@ export class AuthenticationEffects {
tap(action =>
this.logger.debug('effect: setting user preference:', action)
),
switchMap(action =>
mergeMap(action =>
this.authenticationService.setPreference(action.name, action.value).pipe(
tap(response =>
this.logger.debug('setting user preference response:', response)
Expand Down

0 comments on commit d9c5e40

Please sign in to comment.