fix: update webhook event names to match API enum values

main
borja (aider) 3 months ago
parent a3fae9876b
commit abb3decd40

@ -22,8 +22,13 @@ type WebhookResponse = {
export class WebhookManager { export class WebhookManager {
private static readonly REQUIRED_EVENTS = [ private static readonly REQUIRED_EVENTS = [
'APPLICATION_STARTUP', 'APPLICATION_STARTUP',
'messages.upsert', 'MESSAGES_UPSERT',
'groups.update', 'GROUPS_UPSERT',
'MESSAGES_UPDATE',
'MESSAGES_DELETE',
'PRESENCE_UPDATE',
'CONTACTS_UPDATE',
'CHATS_UPDATE'
]; ];
private static validateConfig() { private static validateConfig() {

Loading…
Cancel
Save