diff --git a/clearing-parent/gateway-api/src/main/java/ru/spcex/clearing/gatewayapi/service/GatewayService.java b/clearing-parent/gateway-api/src/main/java/ru/spcex/clearing/gatewayapi/service/GatewayService.java index d9f7a47fd..d75557889 100644 --- a/clearing-parent/gateway-api/src/main/java/ru/spcex/clearing/gatewayapi/service/GatewayService.java +++ b/clearing-parent/gateway-api/src/main/java/ru/spcex/clearing/gatewayapi/service/GatewayService.java @@ -7,6 +7,7 @@ import org.slf4j.LoggerFactory; import org.springframework.beans.factory.InitializingBean; import org.springframework.stereotype.Service; import org.springframework.web.client.RestTemplate; +import ru.spcex.clearing.gatewayapi.config.GatewayApiSettings; import ru.spcex.clearing.gatewayapi.config.InboundServerSettings; import ru.spcex.clearing.platform.messaging.domain.BaseRequest; import ru.spcex.clearing.platform.messaging.domain.cud.gateway.GatewayTaskRequest; @@ -27,11 +28,11 @@ public class GatewayService extends QueueConsumer implements InitializingBean { Producer kafkaProducer, RestTemplate restTemplate, UserRoleVerification userRoleVerification, - InboundServerSettings inboundServerSettings) { + GatewayApiSettings gatewayApiSettings) { super(kafkaQueue, kafkaProducer); this.restTemplate = restTemplate; this.userRoleVerification = userRoleVerification; - this.inboundServerSettings = inboundServerSettings; + this.inboundServerSettings = gatewayApiSettings.getInboundServer(); } @Override