ing
This commit is contained in:
		
							parent
							
								
									d773379d8f
								
							
						
					
					
						commit
						69e32ba623
					
				| @ -50,15 +50,15 @@ export class Effects { | ||||
|       return of(new ReadAllByMemberFailure(error)); | ||||
|     }); | ||||
| 
 | ||||
|     @Effect() | ||||
|     markAllAsRead$: Observable<Action> = this.actions$ | ||||
|       .ofType(ActionType.MarkAllAsRead) | ||||
|       .map((action: MarkAllAsRead) => action.payload) | ||||
|       .switchMap(payload => this.notificationService.markAllAsRead(payload.member, payload.pageParams)) | ||||
|       .map(page => { | ||||
|         return new MarkAllAsReadSuccess(page); | ||||
|       }) | ||||
|       .catch((error: RPCClientError) => { | ||||
|         return of(new MarkAllAsReadFailure(error)); | ||||
|       }); | ||||
|   @Effect() | ||||
|   markAllAsRead$: Observable<Action> = this.actions$ | ||||
|     .ofType(ActionType.MarkAllAsRead) | ||||
|     .map((action: MarkAllAsRead) => action.payload) | ||||
|     .switchMap(payload => this.notificationService.markAllAsRead(payload.member, payload.pageParams)) | ||||
|     .map(page => { | ||||
|       return new MarkAllAsReadSuccess(page); | ||||
|     }) | ||||
|     .catch((error: RPCClientError) => { | ||||
|       return of(new MarkAllAsReadFailure(error)); | ||||
|     }); | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user