Fix client compilation
authorChocobozzz <florian.bigard@gmail.com>
Tue, 20 Jun 2017 18:20:09 +0000 (20:20 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Tue, 20 Jun 2017 18:20:09 +0000 (20:20 +0200)
client/src/app/+admin/friends/shared/index.ts
client/src/app/shared/video-abuse/index.ts
client/src/app/videos/shared/index.ts
client/src/app/videos/shared/video.service.ts
client/src/app/videos/video-watch/video-watch.component.ts

index 41aa6edd644bb52b804236cfd8de0716f116feb1..65ab9fb465da4860cecfa0e36603d512f0c33802 100644 (file)
@@ -1,2 +1 @@
-export * from './friend.model'
 export * from './friend.service'
index 7cf24c87df110329ef790abafe50b421cfc87715..92cbfb5f9040b44ad8c1c0fa7495fc13d1dfd457 100644 (file)
@@ -1,2 +1 @@
 export * from './video-abuse.service'
-export * from './video-abuse.model'
index 0fa14f6417cff0eb34e808f937c4f689e326e70f..97d795321a93f994bd89525b0198686f1968d062 100644 (file)
@@ -1,4 +1,3 @@
 export * from './sort-field.type'
-export * from './rate-type.type'
 export * from './video.model'
 export * from './video.service'
index 977b82118a31bc321f57cd9f1f0ad8ac05dd8aa8..7658d8ff035e8a5eca8399573aa60fcee79a1273 100644 (file)
@@ -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)
index 808e0eda983d12834d06105ad05b002701f9d430..9882ddce86ffc35f5199208c22635c5afc60c7d3 100644 (file)
@@ -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
                          }