diff --git a/processor/src/controllers/processor.controller.ts b/processor/src/controllers/processor.controller.ts index 0ee7f4b..fac6d64 100644 --- a/processor/src/controllers/processor.controller.ts +++ b/processor/src/controllers/processor.controller.ts @@ -2,7 +2,7 @@ import { apiSuccess } from '../api/success.api'; import { ControllerResponseType } from '../types/controller.types'; import { ExtensionInput } from '@commercetools/platform-sdk/dist/declarations/src/generated/models/extension'; import { logger } from '../utils/logger.utils'; -import { NextFunction, Request, Response } from 'express'; +import { Request, Response } from 'express'; import { paymentController } from './payment.controller'; import CustomError from '../errors/custom.error'; import SkipError from '../errors/skip.error'; @@ -16,10 +16,9 @@ import { formatErrorResponse } from '../errors/mollie.error'; * * @param {Request} request The express request * @param {Response} response The express response - * @param {NextFunction} next * @returns */ -export const post = async (request: Request, response: Response, next: NextFunction) => { +export const post = async (request: Request, response: Response) => { try { const { action, resource }: ExtensionInput = request.body; diff --git a/processor/tests/utils/map.utils.spec.ts b/processor/tests/utils/map.utils.spec.ts index cf0ef4b..3370ddb 100644 --- a/processor/tests/utils/map.utils.spec.ts +++ b/processor/tests/utils/map.utils.spec.ts @@ -99,7 +99,7 @@ describe('createMollieCreatePaymentParams', () => { shippingAddress: {}, testmode: null, cardToken: '', - include: '' + include: '', }); });