mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-18 11:22:21 -06:00
feat: update API routes and services for better cache handling
Modified instance.router.ts to change HTTP method from PUT to POST for 'restart' route. Updated whatsapp.baileys.service.ts to correct cache configuration logic, ensuring proper usage of cached group metadata. Removed obsolete Typebot-related schema definitions from instance.schema.ts for cleaner validation. These changes improve API functionality and maintainability.
This commit is contained in:
@@ -171,14 +171,6 @@ export const instanceSchema: JSONSchema7 = {
|
||||
chatwootMergeBrazilContacts: { type: 'boolean' },
|
||||
chatwootImportMessages: { type: 'boolean' },
|
||||
chatwootDaysLimitImportMessages: { type: 'number' },
|
||||
// Typebot
|
||||
typebotUrl: { type: 'string' },
|
||||
typebot: { type: 'boolean' },
|
||||
typebotExpire: { type: 'number' },
|
||||
typebotKeywordFinish: { type: 'string' },
|
||||
typebotDelayMessage: { type: 'number' },
|
||||
typebotUnknownMessage: { type: 'string' },
|
||||
typebotListeningFromMe: { type: 'boolean' },
|
||||
},
|
||||
...isNotEmpty('instanceName'),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user