getUnreadByConversationAndMarkRead: Take 'now' param for reliable tests

This commit is contained in:
Scott Nonnenberg 2022-09-22 16:49:06 -07:00 committed by GitHub
parent 77bf3a8669
commit a7253be213
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 3 deletions

View file

@ -1269,6 +1269,7 @@ async function getUnreadByConversationAndMarkRead(options: {
conversationId: string;
isGroup?: boolean;
newestUnreadAt: number;
now?: number;
readAt?: number;
storyId?: UUIDStringType;
}): Promise<GetUnreadByConversationAndMarkReadResultType> {