Skip to content

Commit

Permalink
fix seenComments types
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-funk committed Oct 7, 2024
1 parent 222e71d commit 33c914a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/core/server/models/seenComments/seenComments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { FindSeenCommentsInput } from "coral-server/graph/loaders/SeenComments";
import SeenCommentsCollection from "coral-server/graph/seenCommentsCollection";
import { dotize } from "coral-server/utils/dotize";

import { AnyBulkWriteOperation } from "mongodb";
import { TenantResource } from "../tenant";

/**
Expand Down Expand Up @@ -138,7 +139,7 @@ export async function markSeenCommentsBulk(
seenComments: SeenCommentsCollection,
now: Date
) {
const operations: object[] = [];
const operations: Array<AnyBulkWriteOperation<Readonly<SeenComments>>> = [];

const keys = seenComments.keys();
for (const { userID, storyID } of keys) {
Expand Down

0 comments on commit 33c914a

Please sign in to comment.