Skip to content

Commit

Permalink
fix: removed type post tranformerhandler (#2869)
Browse files Browse the repository at this point in the history
fix: remove ErrorResponse type from postTransfomration delivery
  • Loading branch information
aashishmalik authored Dec 4, 2023
1 parent e0422d1 commit 716bead
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/services/destination/postTransformation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class DestinationPostTransformationService {
}

public static handleDeliveryFailureEvents(
error: ErrorResponse,
error: NonNullable<unknown>,
metaTo: MetaTransferObject,
): DeliveryResponse {
const errObj = generateErrorObject(error, metaTo.errorDetails, false);
Expand All @@ -161,12 +161,6 @@ export class DestinationPostTransformationService {
authErrorCategory: errObj.authErrorCategory,
}),
} as DeliveryResponse;

// for transformer-proxy to maintain contract
const { response } = error;
if (response) {
resp.response = response;
}
ErrorReportingService.reportError(error, metaTo.errorContext, resp);
return resp;
}
Expand Down

0 comments on commit 716bead

Please sign in to comment.