Fix client compilation
This commit is contained in:
parent
a988e81c0e
commit
b632e9049f
|
@ -1,2 +1 @@
|
|||
export * from './friend.model'
|
||||
export * from './friend.service'
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
export * from './video-abuse.service'
|
||||
export * from './video-abuse.model'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
export * from './sort-field.type'
|
||||
export * from './rate-type.type'
|
||||
export * from './video.model'
|
||||
export * from './video.service'
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue