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 4, 2024
1 parent ad25359 commit ed00c95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
2 changes: 1 addition & 1 deletion apps/meteor/app/e2e/server/methods/updateGroupKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ed00c95

Please sign in to comment.