Use UUIDs in group database schema
This commit is contained in:
parent
74fde10ff5
commit
63fcdbe787
79 changed files with 4530 additions and 3664 deletions
|
@ -1,12 +1,12 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { isValidUuid } from '../types/UUID';
|
||||
import { assert } from './assert';
|
||||
import { isValidGuid } from './isValidGuid';
|
||||
|
||||
export function normalizeUuid(uuid: string, context: string): string {
|
||||
assert(
|
||||
isValidGuid(uuid),
|
||||
isValidUuid(uuid),
|
||||
`Normalizing invalid uuid: ${uuid} in context "${context}"`
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue