refactor(backend): SystemWebhookで送信されるペイロードの型を追加 (#14980)

This commit is contained in:
おさむのひと
2024-11-19 10:41:39 +09:00
committed by GitHub
parent c271534aba
commit 7b9c884a5d
5 changed files with 63 additions and 29 deletions

View File

@@ -7,6 +7,8 @@ import { PrimaryColumn, Entity, Index, JoinColumn, Column, ManyToOne } from 'typ
import { id } from './util/id.js';
import { MiUser } from './User.js';
export type AbuseReportResolveType = 'accept' | 'reject';
@Entity('abuse_user_report')
export class MiAbuseUserReport {
@PrimaryColumn(id())
@@ -76,7 +78,7 @@ export class MiAbuseUserReport {
@Column('varchar', {
length: 128, nullable: true,
})
public resolvedAs: 'accept' | 'reject' | null;
public resolvedAs: AbuseReportResolveType | null;
//#region Denormalized fields
@Index()