Fix client compilation
This commit is contained in:
parent
a988e81c0e
commit
b632e9049f
|
@ -1,2 +1 @@
|
||||||
export * from './friend.model'
|
|
||||||
export * from './friend.service'
|
export * from './friend.service'
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
export * from './video-abuse.service'
|
export * from './video-abuse.service'
|
||||||
export * from './video-abuse.model'
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
export * from './sort-field.type'
|
export * from './sort-field.type'
|
||||||
export * from './rate-type.type'
|
|
||||||
export * from './video.model'
|
export * from './video.model'
|
||||||
export * from './video.service'
|
export * from './video.service'
|
||||||
|
|
|
@ -16,7 +16,7 @@ import {
|
||||||
UserService
|
UserService
|
||||||
} from '../../shared'
|
} from '../../shared'
|
||||||
import { Video } from './video.model'
|
import { Video } from './video.model'
|
||||||
import { VideoRateType } from '../../../../../shared'
|
import { UserVideoRate, VideoRateType } from '../../../../../shared'
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class VideoService {
|
export class VideoService {
|
||||||
|
@ -145,7 +145,7 @@ export class VideoService {
|
||||||
return this.setVideoRate(id, 'dislike')
|
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'
|
const url = UserService.BASE_USERS_URL + '/me/videos/' + id + '/rating'
|
||||||
|
|
||||||
return this.authHttp.get(url)
|
return this.authHttp.get(url)
|
||||||
|
|
|
@ -249,7 +249,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
|
||||||
|
|
||||||
this.videoService.getUserVideoRating(this.video.id)
|
this.videoService.getUserVideoRating(this.video.id)
|
||||||
.subscribe(
|
.subscribe(
|
||||||
(ratingObject: UserVideoRate) => {
|
ratingObject => {
|
||||||
if (ratingObject) {
|
if (ratingObject) {
|
||||||
this.userRating = ratingObject.rating
|
this.userRating = ratingObject.rating
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue