Fixing a few purge issues.

This commit is contained in:
Dessalines 2022-06-23 14:43:44 -04:00
parent 719f38b154
commit 25da5108eb
2 changed files with 5 additions and 1 deletions

View file

@ -144,9 +144,13 @@ export class GetModlogResponse {
transferred_to_community: ModTransferCommunityView[];
@Type(() => ModAddView)
added: ModAddView[];
@Type(() => AdminPurgePersonView)
admin_purged_persons: AdminPurgePersonView[];
@Type(() => AdminPurgeCommunityView)
admin_purged_communities: AdminPurgeCommunityView[];
@Type(() => AdminPurgePostView)
admin_purged_posts: AdminPurgePostView[];
@Type(() => AdminPurgeCommentView)
admin_purged_comments: AdminPurgeCommentView[];
}

View file

@ -388,7 +388,7 @@ export class AdminPurgeComment {
@Transform(({ value }) => toOption(value), { toClassOnly: true })
@Transform(({ value }) => toUndefined(value), { toPlainOnly: true })
@Expose()
reason?: string;
reason: Option<string>;
when_: string;
}