From 9bda43128cf55f5d7221b3e6e58dd360462d4b0c Mon Sep 17 00:00:00 2001 From: Tasso Date: Sat, 2 Nov 2024 01:27:20 -0300 Subject: [PATCH] Revert some exports for unit tests --- apps/meteor/app/e2e/server/functions/resetRoomKey.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/meteor/app/e2e/server/functions/resetRoomKey.ts b/apps/meteor/app/e2e/server/functions/resetRoomKey.ts index 65d7137a63a0..89a0058e48ae 100644 --- a/apps/meteor/app/e2e/server/functions/resetRoomKey.ts +++ b/apps/meteor/app/e2e/server/functions/resetRoomKey.ts @@ -88,7 +88,7 @@ export async function resetRoomKey(roomId: string, userId: string, newRoomKey: s } } -function pushToLimit( +export function pushToLimit( arr: NonNullable, item: NonNullable[number], limit = 50, @@ -107,7 +107,7 @@ async function writeAndNotify(updateOps: AnyBulkWriteOperation[], updateOps.length = 0; } -function replicateMongoSlice(keyId: string, sub: ISubscription) { +export function replicateMongoSlice(keyId: string, sub: ISubscription) { if (!sub.E2EKey) { return; }