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; } diff --git a/apps/meteor/app/e2e/server/methods/updateGroupKey.ts b/apps/meteor/app/e2e/server/methods/updateGroupKey.ts index 8561bb675524..5f7860107bd9 100644 --- a/apps/meteor/app/e2e/server/methods/updateGroupKey.ts +++ b/apps/meteor/app/e2e/server/methods/updateGroupKey.ts @@ -16,7 +16,7 @@ declare module '@rocket.chat/ddp-client' { } } -async function updateGroupKey(rid: string, uid: string, key: string, callerUserId: string) { +export async function updateGroupKey(rid: string, uid: string, key: string, callerUserId: string) { // I have a subscription to this room const mySub = await Subscriptions.findOneByRoomIdAndUserId(rid, callerUserId);