Skip to content
This repository was archived by the owner on Jul 14, 2024. It is now read-only.

Commit

Permalink
fix: remove error when find all
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielGuedess committed Jun 23, 2024
1 parent a9bbae9 commit 8d6a22c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ export class OrderProcessingUseCases {
const orderProcesings =
await this.orderProcessingResitory.findAllOrderProcessing(request);

if (orderProcesings.length === 0) {
throw new GraphQLError('ANY ORDER PROCESSING FOR LEGAL CLIENT FOUND', {
extensions: { code: HttpStatus.NOT_FOUND },
});
}

return orderProcesings;
}

Expand Down
5 changes: 0 additions & 5 deletions src/domain/entities/VehicleEntities/vehicle/Vehicle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ export class Vehicle extends Entity {
maxLength: 20,
},
{ field: this.props.year, fieldName: 'Year', maxLength: 4 },
{
field: this.props.registration,
fieldName: 'Registration',
maxLength: 100,
},
{
field: this.props.isIpvaPaid,
fieldName: 'IS IPVA PAID',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class LegalClientQuoteTableModel implements ILegalClientQuoteTable {
Recipient: RecipientModel;
@Field(() => SenderModel)
Sender: SenderModel;
@Field()
@Field({ nullable: true })
icms_id?: string;
@Field(() => IcmsModel)
Icms: IcmsModel;
Expand Down
2 changes: 1 addition & 1 deletion src/infra/graphql/generated/schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ type LegalClientQuoteTableModel {
description: String!
digital_signature: String!
formPayment: String!
icms_id: String!
icms_id: String
id: String!
kindService: String!
mass: Float!
Expand Down

0 comments on commit 8d6a22c

Please sign in to comment.