From c1f7a737cfe174ff1648f269a62540826d0e8089 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 18 Jan 2022 11:25:52 +0100 Subject: Reduce history method names --- client/src/app/shared/shared-main/users/user-history.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/app/shared') 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 { private videoService: VideoService ) {} - getUserVideosHistory (historyPagination: ComponentPaginationLight, search?: string) { + list (historyPagination: ComponentPaginationLight, search?: string) { const pagination = this.restService.componentToRestPagination(historyPagination) let params = new HttpParams() @@ -34,13 +34,13 @@ export class UserHistoryService { ) } - deleteUserVideoHistoryElement (video: Video) { + deleteElement (video: Video) { return this.authHttp .delete(UserHistoryService.BASE_USER_VIDEOS_HISTORY_URL + '/' + video.id) .pipe(catchError(err => this.restExtractor.handleError(err))) } - clearAllUserVideosHistory () { + clearAll () { return this.authHttp .post(UserHistoryService.BASE_USER_VIDEOS_HISTORY_URL + '/remove', {}) .pipe( -- cgit v1.2.3