aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-07-28 16:11:52 +0200
committerChocobozzz <me@florianbigard.com>2023-07-28 16:17:37 +0200
commiteeb838faf2ac3cb3bd42f68fafb4f78af4547a09 (patch)
treec814953de92a45a81b159a9d8778581b4fc8a2af /shared
parent74c8d5bf2d807870ed351fb2a0ee7137987aa995 (diff)
downloadPeerTube-eeb838faf2ac3cb3bd42f68fafb4f78af4547a09.tar.gz
PeerTube-eeb838faf2ac3cb3bd42f68fafb4f78af4547a09.tar.zst
PeerTube-eeb838faf2ac3cb3bd42f68fafb4f78af4547a09.zip
currentTime is now required
Diffstat (limited to 'shared')
-rw-r--r--shared/server-commands/videos/views-command.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/server-commands/videos/views-command.ts b/shared/server-commands/videos/views-command.ts
index 01113f798..bdb8daaa4 100644
--- a/shared/server-commands/videos/views-command.ts
+++ b/shared/server-commands/videos/views-command.ts
@@ -6,7 +6,7 @@ export class ViewsCommand extends AbstractCommand {
6 6
7 view (options: OverrideCommandOptions & { 7 view (options: OverrideCommandOptions & {
8 id: number | string 8 id: number | string
9 currentTime?: number 9 currentTime: number
10 viewEvent?: VideoViewEvent 10 viewEvent?: VideoViewEvent
11 xForwardedFor?: string 11 xForwardedFor?: string
12 }) { 12 }) {
@@ -19,7 +19,7 @@ export class ViewsCommand extends AbstractCommand {
19 path, 19 path,
20 xForwardedFor, 20 xForwardedFor,
21 fields: { 21 fields: {
22 currentTime: currentTime ?? 1, 22 currentTime,
23 viewEvent 23 viewEvent
24 }, 24 },
25 implicitToken: false, 25 implicitToken: false,