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.
This commit is contained in:
gpt-engineer-app[bot] 2025-05-20 01:10:04 +00:00
parent 6a38fd0bf1
commit 9331f37ec5

View File

@ -20,6 +20,7 @@ export async function cadastrarGrupoWhatsApp(): Promise<WhatsAppGroup | null> {
.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'
})