]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/video/video-caption.ts
Cleanup server fixme
[github/Chocobozzz/PeerTube.git] / server / models / video / video-caption.ts
index eeb2a4afdc7cfcb351a759cef9b24cd486decaff..6335d44e4f088be495d231aadd2a33302deb1a38 100644 (file)
@@ -120,7 +120,7 @@ export class VideoCaptionModel extends Model<VideoCaptionModel> {
       language
     }
 
-    return (VideoCaptionModel.upsert<VideoCaptionModel>(values, { transaction, returning: true }) as any) // FIXME: typings
+    return VideoCaptionModel.upsert(values, { transaction, returning: true })
       .then(([ caption ]) => caption)
   }