X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fabuse%2Fvideo-comment-abuse.ts;h=32cb2ca649edd4a79ab4c19790fe0c35f82d89e0;hb=5b1a6d45b5d6e50102e1c7c8c845401b76b11b4d;hp=de9f4d5fd722a2d4b8a27c71046dd64a00d20212;hpb=57f6896f67cfc570cf3605dd94b0778101b2d9b9;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/models/abuse/video-comment-abuse.ts b/server/models/abuse/video-comment-abuse.ts index de9f4d5fd..32cb2ca64 100644 --- a/server/models/abuse/video-comment-abuse.ts +++ b/server/models/abuse/video-comment-abuse.ts @@ -1,5 +1,5 @@ -import { AllowNull, BelongsTo, Column, CreatedAt, DataType, Default, ForeignKey, Model, Table, UpdatedAt } from 'sequelize-typescript' -import { VideoComment } from '@shared/models' +import { BelongsTo, Column, CreatedAt, ForeignKey, Model, Table, UpdatedAt } from 'sequelize-typescript' +import { AttributesOnly } from '@shared/core-utils' import { VideoCommentModel } from '../video/video-comment' import { AbuseModel } from './abuse' @@ -14,7 +14,7 @@ import { AbuseModel } from './abuse' } ] }) -export class VideoCommentAbuseModel extends Model { +export class VideoCommentAbuseModel extends Model>> { @CreatedAt createdAt: Date @@ -22,11 +22,6 @@ export class VideoCommentAbuseModel extends Model { @UpdatedAt updatedAt: Date - @AllowNull(true) - @Default(null) - @Column(DataType.JSONB) - deletedComment: VideoComment & { Video: { name: string, id: number, uuid: string }} - @ForeignKey(() => AbuseModel) @Column abuseId: number