Skip to content

Commit

Permalink
Merge pull request #44 from RobertDiebels/ISSUE-42
Browse files Browse the repository at this point in the history
fix(undefined-vars): [ISSUE-42] - Resolves issue #42.
  • Loading branch information
rmelian authored Feb 21, 2019
2 parents cbdae35 + 771c1a5 commit 7cfd20b
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 7cfd20b

Please sign in to comment.