diff --git a/src/modules/desk/presentation/http/controllers/DeskController.ts b/src/modules/desk/presentation/http/controllers/DeskController.ts index c6b5a21..5968334 100644 --- a/src/modules/desk/presentation/http/controllers/DeskController.ts +++ b/src/modules/desk/presentation/http/controllers/DeskController.ts @@ -152,7 +152,7 @@ export class DeskController { if (result.isLeft()) throw toPresentationError(result.value); return { - lastClientCalled: { + lastClientCalled: result.value.client ?? { id: result.value.client.id, name: result.value.client.name, organizationId: result.value.client.organizationId,