X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fvideo%2Fvideo-abuse-interface.ts;h=16806cae2ee36378486f7bb99ad226c4a24e2bac;hb=608624252466acf9f1d9ee1c1170bd4fe4d18d18;hp=fa45aa5f907d32534734da590e8b2fc23d9c74a6;hpb=0a6658fdcbd779ada8f3758048c326e997902d5a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/models/video/video-abuse-interface.ts b/server/models/video/video-abuse-interface.ts index fa45aa5f9..16806cae2 100644 --- a/server/models/video/video-abuse-interface.ts +++ b/server/models/video/video-abuse-interface.ts @@ -1,14 +1,14 @@ import * as Sequelize from 'sequelize' import * as Promise from 'bluebird' -import { PodInstance } from '../pod' +import { ServerInstance } from '../server/server-interface' import { ResultList } from '../../../shared' // Don't use barrel, import just what we need -import { VideoAbuse as FormatedVideoAbuse } from '../../../shared/models/videos/video-abuse.model' +import { VideoAbuse as FormattedVideoAbuse } from '../../../shared/models/videos/video-abuse.model' export namespace VideoAbuseMethods { - export type ToFormatedJSON = (this: VideoAbuseInstance) => FormatedVideoAbuse + export type ToFormattedJSON = (this: VideoAbuseInstance) => FormattedVideoAbuse export type ListForApi = (start: number, count: number, sort: string) => Promise< ResultList > } @@ -28,9 +28,9 @@ export interface VideoAbuseInstance extends VideoAbuseClass, VideoAbuseAttribute createdAt: Date updatedAt: Date - Pod: PodInstance + Server: ServerInstance - toFormatedJSON: VideoAbuseMethods.ToFormatedJSON + toFormattedJSON: VideoAbuseMethods.ToFormattedJSON } export interface VideoAbuseModel extends VideoAbuseClass, Sequelize.Model {}