Skip to content

Commit

Permalink
call operator shenanigans
Browse files Browse the repository at this point in the history
  • Loading branch information
lucienbertin committed Nov 23, 2018
1 parent 308409e commit 4ed769c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion applications/home/src/app/router/router.trigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class RouterTrigger {
follow(UpdateUrlRequest),
);
@Effect() caller = this.handler.pipe(
call(UpdateUrlRequest, this.router, this.route),
call(this.router, this.route),
follow(UpdateUrlEvt),
);
@Effect() complete = this.actions$.pipe(
Expand Down
2 changes: 1 addition & 1 deletion libraries/store/src/lib/date/date.effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class DateEffect {
@Effect() handler = this.actions$.pipe(
ofType(SetDateCmd),
follow(DateRequest),
call(DateRequest),
call(),
follow(SetDateEvt),
);
@Effect() complete = this.handler.pipe(
Expand Down
2 changes: 1 addition & 1 deletion libraries/store/src/lib/forecast/forecast.effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class ForecastEffect {
@Effect() handler = this.actions$.pipe(
ofType(SetForecastsCmd),
follow(ForecastsRequest),
call(ForecastsRequest),
call(),
follow(SetForecastsEvt),
);
@Effect() complete = this.handler.pipe(
Expand Down
2 changes: 1 addition & 1 deletion libraries/store/src/lib/forecast/forecast.trigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class ForecastTrigger {

@Effect() trigger = this.updateForecastsTrigger.pipe(
map(([action, location, date]) => new CreateForecastsRequest({location: location, date: date})),
call(CreateForecastsRequest, this.factory),
call(this.factory),
trigger(SetForecastsCmd, f => f),
);

Expand Down
8 changes: 4 additions & 4 deletions libraries/store/src/lib/location/location.effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export class LocationEffect {
ofType(SetAdressCmd),
follow(AddressToGeocodeRequest),
);
@Effect() addressCaller = this.actions$.pipe(
call(AddressToGeocodeRequest, this.gmapService),
@Effect() addressCaller = this.addressHandler.pipe(
call(this.gmapService),
follow(SetGeocodeEvt),
);
@Effect() addressComplete = this.actions$.pipe(
Expand All @@ -42,8 +42,8 @@ export class LocationEffect {
ofType(SetPlaceIdCmd),
follow(IdToGeocodeRequest),
);
@Effect() placeCaller = this.actions$.pipe(
call(IdToGeocodeRequest, this.gmapService),
@Effect() placeCaller = this.placeHandler.pipe(
call(this.gmapService),
follow(SetGeocodeEvt),
);
@Effect() placeComplete = this.actions$.pipe(
Expand Down

0 comments on commit 4ed769c

Please sign in to comment.