Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit b4a94fe

Browse files
committed
fixup! feat: update to rxjs@6.0.0-beta.1
1 parent 63fd45e commit b4a94fe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/app/http-client-hero.service.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@ export class HttpClientHeroService extends HeroService {
6767
);
6868
}
6969

70-
updateHero (hero: Hero): Observable<null> {
71-
return this.http.put(this.heroesUrl, hero, cudOptions).pipe(
72-
map(_ => null),
70+
updateHero (hero: Hero): Observable<Hero> {
71+
return this.http.put<Hero>(this.heroesUrl, hero, cudOptions).pipe(
7372
catchError(this.handleError)
7473
);
7574
}

0 commit comments

Comments
 (0)