Skip to content

Commit

Permalink
replace collection type on updateRelatedCommentCounts
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-funk committed Oct 7, 2024
1 parent 169eab4 commit de2bf8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/core/server/models/comment/counts/counts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
GQLCommentTagCounts,
} from "coral-server/graph/schema/__generated__/types";

import { Story } from "coral-server/models/story";
import {
createEmptyCommentModerationQueueCounts,
createEmptyCommentStatusCounts,
Expand Down Expand Up @@ -223,7 +224,7 @@ interface RelatedCommentCountsDocument extends Document {
}

export async function updateRelatedCommentCounts(
collection: Collection<any>,
collection: Collection<Readonly<Story>>,
tenantID: string,
id: string,
commentCounts: DeepPartial<RelatedCommentCounts>
Expand Down

0 comments on commit de2bf8f

Please sign in to comment.