Skip to content

Commit

Permalink
Code review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenkumarct committed Feb 1, 2024
1 parent 4d468d8 commit 3ebf3e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions processor/src/libs/fastify/error-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const errorHandler = (error: Error, req: FastifyRequest, reply: FastifyRe
if (error instanceof Errorx) {
return handleErrorx(error, reply);
} else {
log.error(error.message);
log.error(error);
return reply.code(500).send({
code: 'General',
message: 'Internal server error.',
Expand All @@ -66,7 +66,7 @@ export const errorHandler = (error: Error, req: FastifyRequest, reply: FastifyRe
};

const handleErrorx = (error: Errorx, reply: FastifyReply) => {
log.error(error.message);
log.error(error);
const errorBuilder: TError = {
statusCode: error.httpErrorStatus,
code: error.code,
Expand Down
2 changes: 1 addition & 1 deletion processor/src/services/payment.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class DefaultPaymentService implements PaymentService {
cart: ctCart,
}),
paymentMethodInfo: {
paymentInterface: 'mock-connect',
paymentInterface: 'mock',
},
...(ctCart.customerId && {
customer: {
Expand Down

0 comments on commit 3ebf3e0

Please sign in to comment.