]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/video/tag.ts
Make it compile at least
[github/Chocobozzz/PeerTube.git] / server / models / video / tag.ts
index d0d8353d7999607482d2a522009a0590e5703ac8..0c0757fc809265152633e6e31da95aa3513e1bda 100644 (file)
@@ -47,14 +47,14 @@ function associate (models) {
   Tag.belongsToMany(models.Video, {
     foreignKey: 'tagId',
     through: models.VideoTag,
-    onDelete: 'cascade'
+    onDelete: 'CASCADE'
   })
 }
 
 findOrCreateTags = function (tags: string[], transaction: Sequelize.Transaction) {
   const tasks: Promise<TagInstance>[] = []
   tags.forEach(tag => {
-    const query: any = {
+    const query: Sequelize.FindOrInitializeOptions<TagAttributes> = {
       where: {
         name: tag
       },