]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/video/video-abuse.ts
Add reason when banning a user
[github/Chocobozzz/PeerTube.git] / server / models / video / video-abuse.ts
index a6319bb79186314d8304fb416b88aae2079b412f..39f0c2cb2c6ae605e733d8d70b8762b4f110f0c9 100644 (file)
@@ -57,7 +57,7 @@ export class VideoAbuseModel extends Model<VideoAbuseModel> {
 
   @AfterCreate
   static sendEmailNotification (instance: VideoAbuseModel) {
-    return Emailer.Instance.addVideoAbuseReport(instance.videoId)
+    return Emailer.Instance.addVideoAbuseReportJob(instance.videoId)
   }
 
   static listForApi (start: number, count: number, sort: string) {