omnichannel-backend/backend-dev.log
Rafael Lopes 8c28e9c479
All checks were successful
Deploy Dev / deploy (push) Successful in 47s
FEAT: Implementa chat funcional Whatsapp com atribuição de usuario
- Aumento do limite de payload no NestJS para 50MB (json/urlencoded) permitindo upload de mídias em base64 sem erros de 'PayloadTooLarge'.
- Criação de mecanismo de 'Smart Name Resolution' e 'Auto-Reparação' reativa para evitar que nomes de contatos sejam sobrescritos por JIDs numéricos, consultando o Puppeteer em segundo plano.
- Correção de erro na atribuição de chats (/whatsapp/assign) onde 'area_id' nulo violava restrição 'NOT NULL' do PostgreSQL, agora exigindo o ID inteiro correspondente.
2026-05-18 11:14:17 -03:00

248 lines
16 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

> omnichannel-backend@1.0.0 dev
> cross-env NODE_ENV=development nest start --watch
[17:25:31] Starting compilation in watch mode...
[17:25:39] Found 0 errors. Watching for file changes.
[Nest] 42064 - 14/05/2026, 17:25:44  LOG [NestFactory] Starting Nest application...
[Nest] 42064 - 14/05/2026, 17:25:44  LOG [InstanceLoader] DatabaseModule dependencies initialized +27ms
[Nest] 42064 - 14/05/2026, 17:25:44  LOG [InstanceLoader] AppModule dependencies initialized +11ms
[Nest] 42064 - 14/05/2026, 17:25:44  LOG [InstanceLoader] AdminModule dependencies initialized +4ms
[Nest] 42064 - 14/05/2026, 17:25:44  LOG [InstanceLoader] AuthModule dependencies initialized +1ms
[Nest] 42064 - 14/05/2026, 17:25:44  LOG [RoutesResolver] AppController {/}: +17ms
[Nest] 42064 - 14/05/2026, 17:25:44  LOG [RouterExplorer] Mapped {/health, GET} route +17ms
[Nest] 42064 - 14/05/2026, 17:25:44  LOG [RoutesResolver] AuthController {/auth}: +2ms
[Nest] 42064 - 14/05/2026, 17:25:44  LOG [RouterExplorer] Mapped {/auth/config, GET} route +3ms
[Nest] 42064 - 14/05/2026, 17:25:44  LOG [RouterExplorer] Mapped {/auth/login, POST} route +4ms
[Nest] 42064 - 14/05/2026, 17:25:44  LOG [RouterExplorer] Mapped {/auth/oauth/microsoft/start, GET} route +2ms
[Nest] 42064 - 14/05/2026, 17:25:44  LOG [RouterExplorer] Mapped {/auth/oauth/microsoft/callback, GET} route +3ms
[Nest] 42064 - 14/05/2026, 17:25:44  LOG [RoutesResolver] AdminAccessController {/admin/access}: +2ms
[Nest] 42064 - 14/05/2026, 17:25:44  LOG [RouterExplorer] Mapped {/admin/access/options, GET} route +4ms
[Nest] 42064 - 14/05/2026, 17:25:44  LOG [RouterExplorer] Mapped {/admin/access/users, GET} route +2ms
[Nest] 42064 - 14/05/2026, 17:25:44  LOG [RouterExplorer] Mapped {/admin/access/users/:id, PUT} route +4ms
[Nest] 42064 - 14/05/2026, 17:25:44  LOG [NestApplication] Nest application successfully started +9ms
[Nest] 42064 - 14/05/2026, 17:25:44  LOG [Bootstrap] Backend ouvindo na porta 3001
[18:11:44] File change detected. Starting incremental compilation...
[18:11:47] Found 0 errors. Watching for file changes.
[18:11:47] File change detected. Starting incremental compilation...
[18:11:50] Found 0 errors. Watching for file changes.
[18:11:50] File change detected. Starting incremental compilation...
[18:11:53] Found 0 errors. Watching for file changes.
[18:11:57] File change detected. Starting incremental compilation...
[18:11:59] Found 0 errors. Watching for file changes.
[Nest] 13228 - 14/05/2026, 18:12:05  LOG [NestFactory] Starting Nest application...
[Nest] 13228 - 14/05/2026, 18:12:05  LOG [InstanceLoader] DatabaseModule dependencies initialized +55ms
[Nest] 13228 - 14/05/2026, 18:12:05  LOG [InstanceLoader] AppModule dependencies initialized +6ms
[Nest] 13228 - 14/05/2026, 18:12:05  LOG [InstanceLoader] AdminModule dependencies initialized +5ms
[Nest] 13228 - 14/05/2026, 18:12:05  LOG [InstanceLoader] AuthModule dependencies initialized +2ms
[Nest] 13228 - 14/05/2026, 18:12:05  LOG [RoutesResolver] AppController {/}: +15ms
[Nest] 13228 - 14/05/2026, 18:12:05  LOG [RouterExplorer] Mapped {/health, GET} route +11ms
[Nest] 13228 - 14/05/2026, 18:12:05  LOG [RoutesResolver] AuthController {/auth}: +1ms
[Nest] 13228 - 14/05/2026, 18:12:05  LOG [RouterExplorer] Mapped {/auth/config, GET} route +3ms
[Nest] 13228 - 14/05/2026, 18:12:05  LOG [RouterExplorer] Mapped {/auth/login, POST} route +5ms
[Nest] 13228 - 14/05/2026, 18:12:05  LOG [RouterExplorer] Mapped {/auth/oauth/microsoft/start, GET} route +1ms
[Nest] 13228 - 14/05/2026, 18:12:05  LOG [RouterExplorer] Mapped {/auth/oauth/microsoft/callback, GET} route +2ms
[Nest] 13228 - 14/05/2026, 18:12:05  LOG [RoutesResolver] AdminAccessController {/admin/access}: +2ms
[Nest] 13228 - 14/05/2026, 18:12:05  LOG [RouterExplorer] Mapped {/admin/access/options, GET} route +1ms
[Nest] 13228 - 14/05/2026, 18:12:05  LOG [RouterExplorer] Mapped {/admin/access/users, GET} route +1ms
[Nest] 13228 - 14/05/2026, 18:12:05  LOG [RouterExplorer] Mapped {/admin/access/users/:id, PUT} route +2ms
[Nest] 13228 - 14/05/2026, 18:12:05  LOG [NestApplication] Nest application successfully started +8ms
[Nest] 13228 - 14/05/2026, 18:12:05  LOG [Bootstrap] Backend ouvindo na porta 3001
[18:12:25] File change detected. Starting incremental compilation...
src/modules/whatsapp/whatsapp.module.ts:2:33 - error TS2307: Cannot find module './whatsapp.service' or its corresponding type declarations.
2 import { WhatsappService } from './whatsapp.service';
   ~~~~~~~~~~~~~~~~~~~~
src/modules/whatsapp/whatsapp.module.ts:3:33 - error TS2307: Cannot find module './whatsapp.gateway' or its corresponding type declarations.
3 import { WhatsappGateway } from './whatsapp.gateway';
   ~~~~~~~~~~~~~~~~~~~~
src/modules/whatsapp/whatsapp.module.ts:4:36 - error TS2307: Cannot find module './whatsapp.controller' or its corresponding type declarations.
4 import { WhatsappController } from './whatsapp.controller';
   ~~~~~~~~~~~~~~~~~~~~~~~
[18:12:25] Found 3 errors. Watching for file changes.
[18:12:27] File change detected. Starting incremental compilation...
src/modules/whatsapp/whatsapp.controller.ts:2:33 - error TS2307: Cannot find module './whatsapp.service' or its corresponding type declarations.
2 import { WhatsappService } from './whatsapp.service';
   ~~~~~~~~~~~~~~~~~~~~
src/modules/whatsapp/whatsapp.module.ts:2:33 - error TS2307: Cannot find module './whatsapp.service' or its corresponding type declarations.
2 import { WhatsappService } from './whatsapp.service';
   ~~~~~~~~~~~~~~~~~~~~
src/modules/whatsapp/whatsapp.module.ts:3:33 - error TS2307: Cannot find module './whatsapp.gateway' or its corresponding type declarations.
3 import { WhatsappGateway } from './whatsapp.gateway';
   ~~~~~~~~~~~~~~~~~~~~
[18:12:28] Found 3 errors. Watching for file changes.
[18:12:36] File change detected. Starting incremental compilation...
src/modules/whatsapp/whatsapp.controller.ts:2:33 - error TS2307: Cannot find module './whatsapp.service' or its corresponding type declarations.
2 import { WhatsappService } from './whatsapp.service';
   ~~~~~~~~~~~~~~~~~~~~
src/modules/whatsapp/whatsapp.module.ts:2:33 - error TS2307: Cannot find module './whatsapp.service' or its corresponding type declarations.
2 import { WhatsappService } from './whatsapp.service';
   ~~~~~~~~~~~~~~~~~~~~
src/modules/whatsapp/whatsapp.module.ts:3:33 - error TS2307: Cannot find module './whatsapp.gateway' or its corresponding type declarations.
3 import { WhatsappGateway } from './whatsapp.gateway';
   ~~~~~~~~~~~~~~~~~~~~
[18:12:40] Found 3 errors. Watching for file changes.
[18:12:41] File change detected. Starting incremental compilation...
src/modules/whatsapp/whatsapp.controller.ts:2:33 - error TS2307: Cannot find module './whatsapp.service' or its corresponding type declarations.
2 import { WhatsappService } from './whatsapp.service';
   ~~~~~~~~~~~~~~~~~~~~
src/modules/whatsapp/whatsapp.module.ts:2:33 - error TS2307: Cannot find module './whatsapp.service' or its corresponding type declarations.
2 import { WhatsappService } from './whatsapp.service';
   ~~~~~~~~~~~~~~~~~~~~
src/modules/whatsapp/whatsapp.module.ts:3:33 - error TS2307: Cannot find module './whatsapp.gateway' or its corresponding type declarations.
3 import { WhatsappGateway } from './whatsapp.gateway';
   ~~~~~~~~~~~~~~~~~~~~
[18:12:41] Found 3 errors. Watching for file changes.
[18:13:01] File change detected. Starting incremental compilation...
src/modules/whatsapp/whatsapp.controller.ts:2:33 - error TS2307: Cannot find module './whatsapp.service' or its corresponding type declarations.
2 import { WhatsappService } from './whatsapp.service';
   ~~~~~~~~~~~~~~~~~~~~
src/modules/whatsapp/whatsapp.module.ts:2:33 - error TS2307: Cannot find module './whatsapp.service' or its corresponding type declarations.
2 import { WhatsappService } from './whatsapp.service';
   ~~~~~~~~~~~~~~~~~~~~
src/modules/whatsapp/whatsapp.module.ts:3:33 - error TS2307: Cannot find module './whatsapp.gateway' or its corresponding type declarations.
3 import { WhatsappGateway } from './whatsapp.gateway';
   ~~~~~~~~~~~~~~~~~~~~
[18:13:01] Found 3 errors. Watching for file changes.
[18:13:12] File change detected. Starting incremental compilation...
src/modules/whatsapp/whatsapp.module.ts:3:33 - error TS2307: Cannot find module './whatsapp.gateway' or its corresponding type declarations.
3 import { WhatsappGateway } from './whatsapp.gateway';
   ~~~~~~~~~~~~~~~~~~~~
src/modules/whatsapp/whatsapp.service.ts:3:33 - error TS2307: Cannot find module './whatsapp.gateway' or its corresponding type declarations.
3 import { WhatsappGateway } from './whatsapp.gateway';
   ~~~~~~~~~~~~~~~~~~~~
src/modules/whatsapp/whatsapp.service.ts:63:25 - error TS2339: Property 'isGroupMsg' does not exist on type 'Message'.
63 isGroupMsg: msg.isGroupMsg,
   ~~~~~~~~~~
[18:13:13] Found 3 errors. Watching for file changes.
[18:13:14] File change detected. Starting incremental compilation...
src/modules/whatsapp/whatsapp.service.ts:63:25 - error TS2339: Property 'isGroupMsg' does not exist on type 'Message'.
63 isGroupMsg: msg.isGroupMsg,
   ~~~~~~~~~~
[18:13:16] Found 1 error. Watching for file changes.
[18:14:57] File change detected. Starting incremental compilation...
src/modules/whatsapp/whatsapp.service.ts:63:25 - error TS2339: Property 'isGroupMsg' does not exist on type 'Message'.
63 isGroupMsg: msg.isGroupMsg,
   ~~~~~~~~~~
[18:14:58] Found 1 error. Watching for file changes.
[18:19:00] File change detected. Starting incremental compilation...
src/modules/whatsapp/whatsapp.service.ts:63:25 - error TS2339: Property 'isGroupMsg' does not exist on type 'Message'.
63 isGroupMsg: msg.isGroupMsg,
   ~~~~~~~~~~
[18:19:00] Found 1 error. Watching for file changes.
[18:19:05] File change detected. Starting incremental compilation...
src/modules/whatsapp/whatsapp.service.ts:63:25 - error TS2339: Property 'isGroupMsg' does not exist on type 'Message'.
63 isGroupMsg: msg.isGroupMsg,
   ~~~~~~~~~~
[18:19:05] Found 1 error. Watching for file changes.
[18:19:12] File change detected. Starting incremental compilation...
src/modules/whatsapp/whatsapp.service.ts:63:25 - error TS2339: Property 'isGroupMsg' does not exist on type 'Message'.
63 isGroupMsg: msg.isGroupMsg,
   ~~~~~~~~~~
[18:19:13] Found 1 error. Watching for file changes.
[18:19:20] File change detected. Starting incremental compilation...
src/modules/whatsapp/whatsapp.service.ts:67:25 - error TS2339: Property 'isGroupMsg' does not exist on type 'Message'.
67 isGroupMsg: msg.isGroupMsg,
   ~~~~~~~~~~
[18:19:21] Found 1 error. Watching for file changes.
[18:30:52] File change detected. Starting incremental compilation...
src/modules/whatsapp/whatsapp.service.ts:67:25 - error TS2339: Property 'isGroupMsg' does not exist on type 'Message'.
67 isGroupMsg: msg.isGroupMsg,
   ~~~~~~~~~~
[18:30:53] Found 1 error. Watching for file changes.
[18:32:18] File change detected. Starting incremental compilation...
[18:33:45] File change detected. Starting incremental compilation...
[18:33:48] Found 0 errors. Watching for file changes.
[18:33:49] File change detected. Starting incremental compilation...
[18:33:50] Found 0 errors. Watching for file changes.