aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-09-04 21:45:05 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-09-04 21:45:05 +0200
commit980246ea8f1c51a137eaf0c441ef7e3b6fb88810 (patch)
tree0ce1339bc1d56a2dfd35935fe4f0303df8f75eca /server/controllers
parent8221fef0f9d9b426fa498840d3f4fe2abfe19788 (diff)
downloadPeerTube-980246ea8f1c51a137eaf0c441ef7e3b6fb88810.tar.gz
PeerTube-980246ea8f1c51a137eaf0c441ef7e3b6fb88810.tar.zst
PeerTube-980246ea8f1c51a137eaf0c441ef7e3b6fb88810.zip
Make tslint happy
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 = {}