From b632e9049fccea12c016556cfef3ab621aa683d2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 20 Jun 2017 20:20:09 +0200 Subject: [PATCH] Fix client compilation --- client/src/app/+admin/friends/shared/index.ts | 1 - client/src/app/shared/video-abuse/index.ts | 1 - client/src/app/videos/shared/index.ts | 1 - client/src/app/videos/shared/video.service.ts | 4 ++-- client/src/app/videos/video-watch/video-watch.component.ts | 2 +- 5 files changed, 3 insertions(+), 6 deletions(-) diff --git a/client/src/app/+admin/friends/shared/index.ts b/client/src/app/+admin/friends/shared/index.ts index 41aa6edd6..65ab9fb46 100644 --- a/client/src/app/+admin/friends/shared/index.ts +++ b/client/src/app/+admin/friends/shared/index.ts @@ -1,2 +1 @@ -export * from './friend.model' export * from './friend.service' diff --git a/client/src/app/shared/video-abuse/index.ts b/client/src/app/shared/video-abuse/index.ts index 7cf24c87d..92cbfb5f9 100644 --- a/client/src/app/shared/video-abuse/index.ts +++ b/client/src/app/shared/video-abuse/index.ts @@ -1,2 +1 @@ export * from './video-abuse.service' -export * from './video-abuse.model' diff --git a/client/src/app/videos/shared/index.ts b/client/src/app/videos/shared/index.ts index 0fa14f641..97d795321 100644 --- a/client/src/app/videos/shared/index.ts +++ b/client/src/app/videos/shared/index.ts @@ -1,4 +1,3 @@ export * from './sort-field.type' -export * from './rate-type.type' export * from './video.model' export * from './video.service' diff --git a/client/src/app/videos/shared/video.service.ts b/client/src/app/videos/shared/video.service.ts index 977b82118..7658d8ff0 100644 --- a/client/src/app/videos/shared/video.service.ts +++ b/client/src/app/videos/shared/video.service.ts @@ -16,7 +16,7 @@ import { UserService } from '../../shared' import { Video } from './video.model' -import { VideoRateType } from '../../../../../shared' +import { UserVideoRate, VideoRateType } from '../../../../../shared' @Injectable() export class VideoService { @@ -145,7 +145,7 @@ export class VideoService { return this.setVideoRate(id, 'dislike') } - getUserVideoRating (id: string): Observable { + getUserVideoRating (id: string): Observable { const url = UserService.BASE_USERS_URL + '/me/videos/' + id + '/rating' return this.authHttp.get(url) diff --git a/client/src/app/videos/video-watch/video-watch.component.ts b/client/src/app/videos/video-watch/video-watch.component.ts index 808e0eda9..9882ddce8 100644 --- a/client/src/app/videos/video-watch/video-watch.component.ts +++ b/client/src/app/videos/video-watch/video-watch.component.ts @@ -249,7 +249,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { this.videoService.getUserVideoRating(this.video.id) .subscribe( - (ratingObject: UserVideoRate) => { + ratingObject => { if (ratingObject) { this.userRating = ratingObject.rating } -- 2.25.1