Skip to content

Commit 8533b14

Browse files
Copilotkamilbaczek
andcommitted
Update configuration files to use new Database options structure
Co-authored-by: kamilbaczek <74410956+kamilbaczek@users.noreply.github.com>
1 parent a97634b commit 8533b14

4 files changed

Lines changed: 8 additions & 12 deletions

File tree

Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts/appsettings.Development.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"FeatureManagement": {
99
"Contracts": true,
1010
},
11-
"ConnectionStrings": {
12-
"Contracts": "Host=postgres:5432;Database=fitnet;Username=postgres;Password=mysecretpassword"
11+
"Database": {
12+
"ConnectionString": "Host=postgres:5432;Database=fitnet;Username=postgres;Password=mysecretpassword"
1313
},
1414
"EventBus": {
1515
"Uri": "rabbitmq",

Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts/appsettings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"FeatureManagement": {
1010
"Contracts": true,
1111
},
12-
"ConnectionStrings": {
13-
"Contracts": ""
12+
"Database": {
13+
"ConnectionString": ""
1414
},
1515
"ExternalEventBus": {
1616
"Uri": "localhost",

Chapter-3-microservice-extraction/Fitnet/Src/Fitnet/appsettings.Development.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@
1111
"Passes": true,
1212
"Reports": true
1313
},
14-
"ConnectionStrings": {
15-
"Passes": "Host=postgres:5432;Database=fitnet;Username=postgres;Password=mysecretpassword",
16-
"Reports": "Host=postgres:5432;Database=fitnet;Username=postgres;Password=mysecretpassword",
17-
"Offers": "Host=postgres:5432;Database=fitnet;Username=postgres;Password=mysecretpassword"
14+
"Database": {
15+
"ConnectionString": "Host=postgres:5432;Database=fitnet;Username=postgres;Password=mysecretpassword"
1816
},
1917
"EventBus": {
2018
"Uri": "rabbitmq",

Chapter-3-microservice-extraction/Fitnet/Src/Fitnet/appsettings.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@
1717
"Enabled": true
1818
}
1919
},
20-
"ConnectionStrings": {
21-
"Passes": "",
22-
"Reports": "",
23-
"Offers": ""
20+
"Database": {
21+
"ConnectionString": ""
2422
},
2523
"EventBus": {
2624
"Uri": "localhost",

0 commit comments

Comments
 (0)