From 518c03ac5334de88ac9826ee4cf07e9ee30b8488 Mon Sep 17 00:00:00 2001 From: Tyler Myracle Date: Mon, 15 Jan 2024 10:59:11 -0600 Subject: [PATCH] clean up --- apps/server/src/app/routes/webhooks.router.ts | 4 ++-- .../features/src/providers/teller/teller.service.ts | 11 ----------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/apps/server/src/app/routes/webhooks.router.ts b/apps/server/src/app/routes/webhooks.router.ts index 18450f0e..6abbd3dd 100644 --- a/apps/server/src/app/routes/webhooks.router.ts +++ b/apps/server/src/app/routes/webhooks.router.ts @@ -161,8 +161,8 @@ router.post( console.log('handling webhook') await ctx.tellerWebhooks.handleWebhook(input as TellerTypes.WebhookData) } catch (err) { - // record error but don't throw, otherwise Finicity Connect behaves weird - ctx.logger.error(`[finicity_webhook] error handling webhook`, err) + // record error but don't throw + ctx.logger.error(`[teller_webhook] error handling webhook`, err) } return { status: 'ok' } diff --git a/libs/server/features/src/providers/teller/teller.service.ts b/libs/server/features/src/providers/teller/teller.service.ts index 2b7991ac..de393b22 100644 --- a/libs/server/features/src/providers/teller/teller.service.ts +++ b/libs/server/features/src/providers/teller/teller.service.ts @@ -1,16 +1,5 @@ import type { Logger } from 'winston' import type { AccountConnection, PrismaClient, User } from '@prisma/client' -import type { IETL, SyncConnectionOptions } from '@maybe-finance/server/shared' -import type { IInstitutionProvider } from '../../institution' -import type { - AccountConnectionSyncEvent, - IAccountConnectionProvider, -} from '../../account-connection' -import _ from 'lodash' -import axios from 'axios' -import { v4 as uuid } from 'uuid' -import { SharedUtil } from '@maybe-finance/shared' -import { etl } from '@maybe-finance/server/shared' import type { TellerApi } from '@maybe-finance/teller-api' export interface ITellerConnect {