Skip to content

Commit

Permalink
send adapter registers on fintlabs only
Browse files Browse the repository at this point in the history
  • Loading branch information
hknots committed Oct 24, 2024
1 parent 61234dd commit 8e14123
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import no.fintlabs.provider.security.AdapterRegistrationValidator;
import org.springframework.stereotype.Service;

import static no.fintlabs.provider.kafka.TopicNamesConstants.FINTLABS_NO;

@Slf4j
@RequiredArgsConstructor
@Service
Expand All @@ -18,7 +20,7 @@ public class RegistrationService {

public void register(AdapterContract adapterContract) {
adapterRegistrationValidator.validateCapabilities(adapterContract.getCapabilities());
adapterContractProducer.send(adapterContract, adapterContract.getOrgId());
adapterContractProducer.send(adapterContract, FINTLABS_NO);
adapterContractContext.add(adapterContract);
log.info("New adapter has registered: {}", adapterContract.getAdapterId());
}
Expand Down

0 comments on commit 8e14123

Please sign in to comment.