From 9331f37ec5f56f0ab57e36bbbc49ad91db73debc Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Tue, 20 May 2025 01:10:04 +0000 Subject: [PATCH] Fix: gruposWhatsAppService.ts insert error The `cadastrarGrupoWhatsApp` function in `gruposWhatsAppService.ts` was updated to include the `remote_jid` field when inserting a new group into the `grupos_whatsapp` table. This resolves the TypeScript error related to missing properties in the insert call. --- src/services/gruposWhatsAppService.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/services/gruposWhatsAppService.ts b/src/services/gruposWhatsAppService.ts index a6512f1..674146d 100644 --- a/src/services/gruposWhatsAppService.ts +++ b/src/services/gruposWhatsAppService.ts @@ -20,6 +20,7 @@ export async function cadastrarGrupoWhatsApp(): Promise { .from('grupos_whatsapp') .insert({ user_id: localStorage.getItem('userId') || '', // Mantido por compatibilidade + remote_jid: '', // Valor temporário vazio - será preenchido pelo backend posteriormente login: normalizedEmail, status: 'pendente' })