From 494d2c1fe086c26b772441d718cba66e95fe0f4e Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Fri, 7 Jun 2024 01:11:19 +0200 Subject: [PATCH] fix: TS typing --- packages/server/src/api/controllers/Webhooks/Webhooks.ts | 7 +++---- .../server/src/services/Cashflow/CashflowApplication.ts | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/server/src/api/controllers/Webhooks/Webhooks.ts b/packages/server/src/api/controllers/Webhooks/Webhooks.ts index 4bb7e4d5e..9abc03dfa 100644 --- a/packages/server/src/api/controllers/Webhooks/Webhooks.ts +++ b/packages/server/src/api/controllers/Webhooks/Webhooks.ts @@ -1,7 +1,6 @@ -import { NextFunction, Router } from 'express'; -import { PlaidApplication } from '@/services/Banking/Plaid/PlaidApplication'; -import { Request, Response } from 'express'; +import { NextFunction, Router, Request, Response } from 'express'; import { Inject, Service } from 'typedi'; +import { PlaidApplication } from '@/services/Banking/Plaid/PlaidApplication'; import BaseController from '../BaseController'; import { LemonSqueezyWebhooks } from '@/services/Subscription/LemonSqueezyWebhooks'; import { PlaidWebhookTenantBootMiddleware } from '@/services/Banking/Plaid/PlaidWebhookTenantBootMiddleware'; @@ -34,7 +33,7 @@ export class Webhooks extends BaseController { * @param {Response} res * @returns {Response} */ - public async lemonWebhooks(req: Request, res: Response, next: any) { + public async lemonWebhooks(req: Request, res: Response, next: NextFunction) { const data = req.body; const signature = req.headers['x-signature'] ?? ''; const rawBody = req.rawBody; diff --git a/packages/server/src/services/Cashflow/CashflowApplication.ts b/packages/server/src/services/Cashflow/CashflowApplication.ts index 5aaa9936f..f7487badd 100644 --- a/packages/server/src/services/Cashflow/CashflowApplication.ts +++ b/packages/server/src/services/Cashflow/CashflowApplication.ts @@ -125,7 +125,8 @@ export class CashflowApplication { ) { return this.createUncategorizedTransactionService.create( tenantId, - createUncategorizedTransactionDTO + createUncategorizedTransactionDTO, + trx ); }