Skip to content

Commit

Permalink
update property name
Browse files Browse the repository at this point in the history
  • Loading branch information
hofstede-matheus committed Oct 10, 2023
1 parent 340098d commit 809bd15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ import { UpdateDeskUsecase } from '../../../interactors/usecases/UpdateDeskUseca
import { CallNextOnDeskResponse } from '../dto/CallNextOnDesk';
import { CallNextClientOfDeskUsecase } from '../../../interactors/usecases/CallNextClientOfDeskUsecase';
import { Request } from 'express';
import {
DeskEntity,
DeskWithCalledClient,
} from '../../../domain/entities/Desk.entity';
import { DeskEntity } from '../../../domain/entities/Desk.entity';
import { FindAllDesksFromOrganizationUsecase } from '../../../interactors/usecases/FindAllDesksFromOrganizationUsecase';
import { FindOneDeskFromOrganizationUsecase } from '../../../interactors/usecases/FindOneDeskFromOrganizationUsecase';
import { GetDeskResponse } from '../dto/GetDesk';
Expand Down Expand Up @@ -152,7 +149,7 @@ export class DeskController {
if (result.isLeft()) throw toPresentationError(result.value);

return {
client: {
lastCalledClient: {
id: result.value.client.id,
name: result.value.client.name,
organizationId: result.value.client.organizationId,
Expand Down
2 changes: 1 addition & 1 deletion src/modules/desk/presentation/http/dto/GetDesk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export class GetDeskResponse {
@ApiProperty({
type: Client,
})
client: Client;
lastCalledClient: Client;
}

0 comments on commit 809bd15

Please sign in to comment.