From 70c065d64c330196d371941d9294a55da6e3aa37 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 16 Jun 2017 09:54:59 +0200 Subject: Add this context to instance model functions --- server/models/video/video-abuse-interface.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'server/models/video/video-abuse-interface.ts') diff --git a/server/models/video/video-abuse-interface.ts b/server/models/video/video-abuse-interface.ts index 4b7f2a2ec..f3e32f79c 100644 --- a/server/models/video/video-abuse-interface.ts +++ b/server/models/video/video-abuse-interface.ts @@ -1,5 +1,7 @@ import * as Sequelize from 'sequelize' +import { PodInstance } from '../pod' + // Don't use barrel, import just what we need import { VideoAbuse as FormatedVideoAbuse } from '../../../shared/models/video-abuse.model' @@ -17,12 +19,15 @@ export interface VideoAbuseClass { export interface VideoAbuseAttributes { reporterUsername: string reason: string + videoId: string } export interface VideoAbuseInstance extends VideoAbuseClass, VideoAbuseAttributes, Sequelize.Instance { id: number createdAt: Date updatedAt: Date + + Pod: PodInstance } export interface VideoAbuseModel extends VideoAbuseClass, Sequelize.Model {} -- cgit v1.2.3