Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix client compilation

Chocobozzzb632e9049fcc
diff --git a/client/src/app/+admin/friends/shared/index.ts b/client/src/app/+admin/friends/shared/index.ts
index 41aa6edd64..65ab9fb465 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 7cf24c87df..92cbfb5f90 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 0fa14f6417..97d795321a 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 977b82118a..7658d8ff03 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<VideoRateType> {
+ getUserVideoRating (id: string): Observable<UserVideoRate> {
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 808e0eda98..9882ddce86 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
}