From fc3d64b9d771ad6fcef1edab20d9564ecd418825 Mon Sep 17 00:00:00 2001 From: Aaron Cook Date: Fri, 8 Nov 2024 12:15:36 +0100 Subject: [PATCH] Merge branch 'main' into raw-prices-api --- src/datasources/balances-api/balances-api.manager.ts | 1 + src/datasources/errors/http-error-factory.ts | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datasources/balances-api/balances-api.manager.ts b/src/datasources/balances-api/balances-api.manager.ts index cbd397f9ac..fed4f20ed6 100644 --- a/src/datasources/balances-api/balances-api.manager.ts +++ b/src/datasources/balances-api/balances-api.manager.ts @@ -17,6 +17,7 @@ import { ITransactionApiManager } from '@/domain/interfaces/transaction-api.mana import { ChainSchema } from '@/domain/chains/entities/schemas/chain.schema'; import { z } from 'zod'; import { type Raw, rawify } from '@/validation/entities/raw.entity'; +import { ChainSchema } from '@/domain/chains/entities/schemas/chain.schema'; @Injectable() export class BalancesApiManager implements IBalancesApiManager { diff --git a/src/datasources/errors/http-error-factory.ts b/src/datasources/errors/http-error-factory.ts index bd69892f6c..16d2e31d69 100644 --- a/src/datasources/errors/http-error-factory.ts +++ b/src/datasources/errors/http-error-factory.ts @@ -15,7 +15,6 @@ import { get } from 'lodash'; @Injectable() export class HttpErrorFactory { from(source: unknown): DataSourceError { - // TODO: Handle instances of ZodError, returning issue from it if (source instanceof NetworkResponseError) { const errorMessage = get(source, 'data.message', 'An error occurred'); return new DataSourceError(errorMessage, source.response.status);