aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/videos/video-history.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils/videos/video-history.ts')
-rw-r--r--shared/extra-utils/videos/video-history.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/shared/extra-utils/videos/video-history.ts b/shared/extra-utils/videos/video-history.ts
index 0dd3afb24..b989e14dc 100644
--- a/shared/extra-utils/videos/video-history.ts
+++ b/shared/extra-utils/videos/video-history.ts
@@ -14,13 +14,16 @@ function userWatchVideo (
14 return makePutBodyRequest({ url, path, token, fields, statusCodeExpected }) 14 return makePutBodyRequest({ url, path, token, fields, statusCodeExpected })
15} 15}
16 16
17function listMyVideosHistory (url: string, token: string) { 17function listMyVideosHistory (url: string, token: string, search?: string) {
18 const path = '/api/v1/users/me/history/videos' 18 const path = '/api/v1/users/me/history/videos'
19 19
20 return makeGetRequest({ 20 return makeGetRequest({
21 url, 21 url,
22 path, 22 path,
23 token, 23 token,
24 query: {
25 search
26 },
24 statusCodeExpected: HttpStatusCode.OK_200 27 statusCodeExpected: HttpStatusCode.OK_200
25 }) 28 })
26} 29}