aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/remote/videos.ts34
1 files changed, 17 insertions, 17 deletions
diff --git a/server/controllers/api/remote/videos.ts b/server/controllers/api/remote/videos.ts
index 0a90549af..f7ee0356a 100644
--- a/server/controllers/api/remote/videos.ts
+++ b/server/controllers/api/remote/videos.ts
@@ -141,23 +141,23 @@ function processVideosEvents (eventData: RemoteVideoEventData, fromPod: PodInsta
141 let qaduType 141 let qaduType
142 142
143 switch (eventData.eventType) { 143 switch (eventData.eventType) {
144 case REQUEST_VIDEO_EVENT_TYPES.VIEWS: 144 case REQUEST_VIDEO_EVENT_TYPES.VIEWS:
145 columnToUpdate = 'views' 145 columnToUpdate = 'views'
146 qaduType = REQUEST_VIDEO_QADU_TYPES.VIEWS 146 qaduType = REQUEST_VIDEO_QADU_TYPES.VIEWS
147 break 147 break
148 148
149 case REQUEST_VIDEO_EVENT_TYPES.LIKES: 149 case REQUEST_VIDEO_EVENT_TYPES.LIKES:
150 columnToUpdate = 'likes' 150 columnToUpdate = 'likes'
151 qaduType = REQUEST_VIDEO_QADU_TYPES.LIKES 151 qaduType = REQUEST_VIDEO_QADU_TYPES.LIKES
152 break 152 break
153 153
154 case REQUEST_VIDEO_EVENT_TYPES.DISLIKES: 154 case REQUEST_VIDEO_EVENT_TYPES.DISLIKES:
155 columnToUpdate = 'dislikes' 155 columnToUpdate = 'dislikes'
156 qaduType = REQUEST_VIDEO_QADU_TYPES.DISLIKES 156 qaduType = REQUEST_VIDEO_QADU_TYPES.DISLIKES
157 break 157 break
158 158
159 default: 159 default:
160 throw new Error('Unknown video event type.') 160 throw new Error('Unknown video event type.')
161 } 161 }
162 162
163 const query = {} 163 const query = {}