Skip to content

Commit

Permalink
fix(if-statements): [ISSUE-42] - Resolves issue #42.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Diebels committed Feb 21, 2019
1 parent cbdae35 commit 771c1a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion templates/java-spring/.partials/AmqpConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class Config {
private String password;

{{#each asyncapi.topics as |topic key|}}
{{#if topic.subscribe}}
{{#if topic.publish}}
@Value("${amqp.exchange.{{~topic.x-service-name~}}}")
private String {{topic.x-service-name}}Exchange;

Expand Down
2 changes: 0 additions & 2 deletions templates/java-spring/.partials/MqttConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ public class Config {
private String password;

{{#each asyncapi.topics as |topic key|}}
{{#if topic.subscribe}}
@Value("${mqtt.topic.{{~topic.x-service-name~}}Topic}")
private String {{topic.x-service-name}}Topic;

{{/if}}
{{/each}}

@Bean
Expand Down

0 comments on commit 771c1a5

Please sign in to comment.