Join in Group by Invite Code

This commit is contained in:
Leandro Rocha
2024-01-21 02:13:24 -03:00
parent 69a323691f
commit e19e37eef4
6 changed files with 50 additions and 1 deletions

View File

@@ -771,6 +771,16 @@ export const groupInviteSchema: JSONSchema7 = {
...isNotEmpty('inviteCode'),
};
export const AcceptGroupInviteSchema: JSONSchema7 = {
$id: v4(),
type: 'object',
properties: {
inviteCode: { type: 'string', pattern: '^[a-zA-Z0-9]{22}$' },
},
required: ['inviteCode'],
...isNotEmpty('inviteCode'),
};
export const updateParticipantsSchema: JSONSchema7 = {
$id: v4(),
type: 'object',