Skip to content

Commit

Permalink
use GQLRejectionReason type
Browse files Browse the repository at this point in the history
  • Loading branch information
marcushaddon committed Nov 20, 2023
1 parent f45322d commit e3e154b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/core/server/services/users/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import {
GQLCOMMENT_STATUS,
GQLDSAReportStatus,
GQLREJECTION_REASON_CODE,
GQLRejectionReason,
} from "coral-server/graph/schema/__generated__/types";

import { moderate } from "../comments/moderation";
import { Moderate } from "../comments/moderation/moderate";
import { I18n } from "../i18n";
import { AugmentedRedis } from "../redis";

Expand Down Expand Up @@ -134,7 +134,7 @@ async function moderateComments(
targetStatus: GQLCOMMENT_STATUS,
now: Date,
isArchived = false,
rejectionReason?: Moderate["rejectionReason"]
rejectionReason?: GQLRejectionReason
) {
const tenant = await retrieveTenant(mongo, tenantID);
if (!tenant) {
Expand Down

0 comments on commit e3e154b

Please sign in to comment.