Use UUIDs in group database schema

This commit is contained in:
Fedor Indutny
2021-10-26 15:59:08 -07:00
committed by GitHub
parent 74fde10ff5
commit 63fcdbe787
79 changed files with 4530 additions and 3664 deletions

View File

@@ -4,8 +4,8 @@
import { assert } from 'chai';
import * as sinon from 'sinon';
import { times } from 'lodash';
import { v4 as uuid } from 'uuid';
import * as remoteConfig from '../../RemoteConfig';
import { UUID } from '../../types/UUID';
import { isConversationTooBigToRing } from '../../conversations/isConversationTooBigToRing';
@@ -23,7 +23,7 @@ describe('isConversationTooBigToRing', () => {
});
const fakeMemberships = (count: number) =>
times(count, () => ({ conversationId: uuid(), isAdmin: false }));
times(count, () => ({ uuid: UUID.generate().toString(), isAdmin: false }));
afterEach(() => {
sinonSandbox.restore();