1
0
Fork 0

Fix client compilation

This commit is contained in:
Chocobozzz 2017-06-20 20:20:09 +02:00
parent a988e81c0e
commit b632e9049f
5 changed files with 3 additions and 6 deletions

View File

@ -1,2 +1 @@
export * from './friend.model'
export * from './friend.service'

View File

@ -1,2 +1 @@
export * from './video-abuse.service'
export * from './video-abuse.model'

View File

@ -1,4 +1,3 @@
export * from './sort-field.type'
export * from './rate-type.type'
export * from './video.model'
export * from './video.service'

View 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)

View 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
}