aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/onap')
-rwxr-xr-xsrc/main/java/org/onap/nbi/apis/hub/HubResource.java1
-rw-r--r--src/main/java/org/onap/nbi/apis/hub/ListenerResource.java1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/onap/nbi/apis/hub/HubResource.java b/src/main/java/org/onap/nbi/apis/hub/HubResource.java
index a37c522..28e1313 100755
--- a/src/main/java/org/onap/nbi/apis/hub/HubResource.java
+++ b/src/main/java/org/onap/nbi/apis/hub/HubResource.java
@@ -72,6 +72,7 @@ public class HubResource extends ResourceManagement {
@RequestParam MultiValueMap<String, String> params, @RequestHeader(required = false) String targetURL) {
logger.debug("POST request for subscription : {}", subscription);
if(targetURL != null) {
+ Subscriber subscriber = subscriptionService.createSubscription(subscription);
return extApiClientForHub.postEventSubscription(subscription,targetURL);
}else {
Subscriber subscriber = subscriptionService.createSubscription(subscription);
diff --git a/src/main/java/org/onap/nbi/apis/hub/ListenerResource.java b/src/main/java/org/onap/nbi/apis/hub/ListenerResource.java
index def2ff0..aa236d1 100644
--- a/src/main/java/org/onap/nbi/apis/hub/ListenerResource.java
+++ b/src/main/java/org/onap/nbi/apis/hub/ListenerResource.java
@@ -33,7 +33,6 @@ import org.onap.nbi.apis.hub.model.Event;
@RestController
@RequestMapping("/listener")
-@EnableScheduling
public class ListenerResource extends ResourceManagement {
@Autowired