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:
parent
6a38fd0bf1
commit
9331f37ec5
@ -20,6 +20,7 @@ export async function cadastrarGrupoWhatsApp(): Promise<WhatsAppGroup | null> {
|
|||||||
.from('grupos_whatsapp')
|
.from('grupos_whatsapp')
|
||||||
.insert({
|
.insert({
|
||||||
user_id: localStorage.getItem('userId') || '', // Mantido por compatibilidade
|
user_id: localStorage.getItem('userId') || '', // Mantido por compatibilidade
|
||||||
|
remote_jid: '', // Valor temporário vazio - será preenchido pelo backend posteriormente
|
||||||
login: normalizedEmail,
|
login: normalizedEmail,
|
||||||
status: 'pendente'
|
status: 'pendente'
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user