Skip to content
This repository was archived by the owner on Jun 27, 2024. It is now read-only.

Commit 9edc1d4

Browse files
committed
Revert some changes :)
1 parent 8455480 commit 9edc1d4

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

Bookings.Payments/Program.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@
2020

2121
var app = builder.Build();
2222

23-
if (app.Configuration.GetValue<bool>("initializeDatabase"))
24-
{
25-
var options = app.Services.GetRequiredService<PostgresStoreOptions>();
26-
var schema = new Schema(options.Schema);
27-
var connectionFactory = app.Services.GetRequiredService<GetPostgresConnection>();
28-
await schema.CreateSchema(connectionFactory);
29-
}
30-
3123
app.AddEventuousLogs();
3224
app.UseSwagger().UseSwaggerUI();
3325
app.UseOpenTelemetryPrometheusScrapingEndpoint();

Bookings.Payments/appsettings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,5 @@
1616
"Microsoft.AspNetCore": "Warning"
1717
}
1818
},
19-
"AllowedHosts": "*",
20-
"initializeDatabase":true
19+
"AllowedHosts": "*"
2120
}

0 commit comments

Comments
 (0)