]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/video/tag.ts
Add ability to mute a user/instance by server in client
[github/Chocobozzz/PeerTube.git] / server / models / video / tag.ts
index e39a418cdfb0199965bc94ff39c5eb970c45f09a..b39621eaf4a4daf55cdb93a3a5f0fe903674bd7f 100644 (file)
@@ -48,11 +48,10 @@ export class TagModel extends Model<TagModel> {
         },
         defaults: {
           name: tag
-        }
+        },
+        transaction
       }
 
-      if (transaction) query['transaction'] = transaction
-
       const promise = TagModel.findOrCreate(query)
         .then(([ tagInstance ]) => tagInstance)
       tasks.push(promise)