Upgrade sequelize
[oweals/peertube.git] / server / lib / activitypub / video-comments.ts
index cb67bf9a49320c451e40aff7c16df0663b492eb2..18f44d50ecbee4bfb1aaca7efd61809a1a20a3a9 100644 (file)
@@ -73,8 +73,7 @@ async function addVideoComment (videoInstance: VideoModel, commentUrl: string) {
   const entry = await videoCommentActivityObjectToDBAttributes(videoInstance, actor, body)
   if (!entry) return { created: false }
 
-  // FIXME: sequelize typings
-  const [ comment, created ] = (await VideoCommentModel.upsert<VideoCommentModel>(entry, { returning: true }) as any)
+  const [ comment, created ] = await VideoCommentModel.upsert<VideoCommentModel>(entry, { returning: true })
   comment.Account = actor.Account
   comment.Video = videoInstance