From 256e8aa04c4b7125784db73758a3d29878792a38 Mon Sep 17 00:00:00 2001 From: Claudiu Lataretu Date: Mon, 13 Jan 2025 16:05:59 +0200 Subject: [PATCH] SERVICES-2603: fix service injection in swapEventHandler Signed-off-by: Claudiu Lataretu --- src/modules/rabbitmq/handlers/pair.swap.handler.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/rabbitmq/handlers/pair.swap.handler.service.ts b/src/modules/rabbitmq/handlers/pair.swap.handler.service.ts index 494bf57c8..e7590274e 100644 --- a/src/modules/rabbitmq/handlers/pair.swap.handler.service.ts +++ b/src/modules/rabbitmq/handlers/pair.swap.handler.service.ts @@ -1,4 +1,4 @@ -import { Inject, Injectable } from '@nestjs/common'; +import { forwardRef, Inject, Injectable } from '@nestjs/common'; import BigNumber from 'bignumber.js'; import { RedisPubSub } from 'graphql-redis-subscriptions'; import { PUB_SUB } from 'src/services/redis.pubSub.module'; @@ -30,9 +30,11 @@ export class SwapEventHandler { private readonly pairAbi: PairAbiService, private readonly pairService: PairService, private readonly pairSetter: PairSetterService, + @Inject(forwardRef(() => PairComputeService)) private readonly pairCompute: PairComputeService, private readonly routerAbi: RouterAbiService, private readonly routerCompute: RouterComputeService, + @Inject(forwardRef(() => TokenComputeService)) private readonly tokenCompute: TokenComputeService, private readonly tokenSetter: TokenSetterService, private readonly pairHandler: PairHandler,