feat: Route to update group description

This commit is contained in:
Davidson Gomes
2023-06-12 12:05:52 -03:00
parent a28bbce1f9
commit ea9ba27f22
6 changed files with 54 additions and 0 deletions

View File

@@ -702,6 +702,17 @@ export const updateGroupSubjectSchema: JSONSchema7 = {
...isNotEmpty('groupJid', 'subject'),
};
export const updateGroupDescriptionSchema: JSONSchema7 = {
$id: v4(),
type: 'object',
properties: {
groupJid: { type: 'string' },
description: { type: 'string' },
},
required: ['groupJid', 'description'],
...isNotEmpty('groupJid', 'description'),
};
// Webhook Schema
export const webhookSchema: JSONSchema7 = {
$id: v4(),