X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fabuse%2Fvideo-comment-abuse.ts;h=337aaaa58e95043adb2c0ded4ce6c4aabaf1953b;hb=6b5f72beda96d8b7e4d6329c4001827334de27dd;hp=b4cc2762e155a798adda92549751592c2dc8b911;hpb=d95d15598847c7f020aa056e7e6e0c02d2bbf732;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/models/abuse/video-comment-abuse.ts b/server/models/abuse/video-comment-abuse.ts index b4cc2762e..337aaaa58 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/typescript-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 - @ForeignKey(() => AbuseModel) @Column abuseId: number