aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/shared-main')
-rw-r--r--client/src/app/shared/shared-main/users/user-history.service.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/shared/shared-main/users/user-history.service.ts b/client/src/app/shared/shared-main/users/user-history.service.ts
index e28bcdca9..0cfb2d203 100644
--- a/client/src/app/shared/shared-main/users/user-history.service.ts
+++ b/client/src/app/shared/shared-main/users/user-history.service.ts
@@ -18,7 +18,7 @@ export class UserHistoryService {
18 private videoService: VideoService 18 private videoService: VideoService
19 ) {} 19 ) {}
20 20
21 getUserVideosHistory (historyPagination: ComponentPaginationLight, search?: string) { 21 list (historyPagination: ComponentPaginationLight, search?: string) {
22 const pagination = this.restService.componentToRestPagination(historyPagination) 22 const pagination = this.restService.componentToRestPagination(historyPagination)
23 23
24 let params = new HttpParams() 24 let params = new HttpParams()
@@ -34,13 +34,13 @@ export class UserHistoryService {
34 ) 34 )
35 } 35 }
36 36
37 deleteUserVideoHistoryElement (video: Video) { 37 deleteElement (video: Video) {
38 return this.authHttp 38 return this.authHttp
39 .delete(UserHistoryService.BASE_USER_VIDEOS_HISTORY_URL + '/' + video.id) 39 .delete(UserHistoryService.BASE_USER_VIDEOS_HISTORY_URL + '/' + video.id)
40 .pipe(catchError(err => this.restExtractor.handleError(err))) 40 .pipe(catchError(err => this.restExtractor.handleError(err)))
41 } 41 }
42 42
43 clearAllUserVideosHistory () { 43 clearAll () {
44 return this.authHttp 44 return this.authHttp
45 .post(UserHistoryService.BASE_USER_VIDEOS_HISTORY_URL + '/remove', {}) 45 .post(UserHistoryService.BASE_USER_VIDEOS_HISTORY_URL + '/remove', {})
46 .pipe( 46 .pipe(