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 ); }