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:
Davidson Gomes
2024-06-14 09:25:18 -03:00
parent 7dfc09ff16
commit 92a0d8ccc9
3 changed files with 11 additions and 25 deletions

View File

@@ -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'),
};