feat: the created instance token can now also be optionally defined manually in the creation endpoint

This commit is contained in:
Davidson Gomes
2023-06-20 09:07:26 -03:00
parent 1b7015c0df
commit 30cd8a03eb
5 changed files with 29 additions and 12 deletions

View File

@@ -56,6 +56,7 @@ export const instanceNameSchema: JSONSchema7 = {
},
},
qrcode: { type: 'boolean', enum: [true, false] },
token: { type: 'string' },
},
...isNotEmpty('instanceName'),
};