Skip to content

Commit

Permalink
Revert some exports for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan committed Nov 2, 2024
1 parent 3a89c27 commit 9bda431
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/meteor/app/e2e/server/functions/resetRoomKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export async function resetRoomKey(roomId: string, userId: string, newRoomKey: s
}
}

function pushToLimit(
export function pushToLimit(
arr: NonNullable<IRoom['usersWaitingForE2EKeys']>,
item: NonNullable<IRoom['usersWaitingForE2EKeys']>[number],
limit = 50,
Expand All @@ -107,7 +107,7 @@ async function writeAndNotify(updateOps: AnyBulkWriteOperation<ISubscription>[],
updateOps.length = 0;
}

function replicateMongoSlice(keyId: string, sub: ISubscription) {
export function replicateMongoSlice(keyId: string, sub: ISubscription) {
if (!sub.E2EKey) {
return;
}
Expand Down

0 comments on commit 9bda431

Please sign in to comment.