Skip to content

Commit 51acc21

Browse files
committed
handling errors in startup and director dashboard
1 parent 0bb88f2 commit 51acc21

File tree

6 files changed

+613
-193
lines changed

6 files changed

+613
-193
lines changed

Backend/Podium/Podium.API/Middleware/PerformanceTrackingMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class PerformanceTrackingMiddleware
1111
{
1212
private readonly RequestDelegate _next;
1313
private readonly ILogger<PerformanceTrackingMiddleware> _logger;
14-
private readonly TelemetryClient _telemetryClient;
14+
private readonly TelemetryClient? _telemetryClient;
1515

1616
public PerformanceTrackingMiddleware(
1717
RequestDelegate next,

Backend/Podium/Podium.API/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
app.UseSerilogRequestLogging();
9292

9393
// Use performance tracking middleware
94-
app.UseMiddleware<PerformanceTrackingMiddleware>();
94+
//app.UseMiddleware<PerformanceTrackingMiddleware>();
9595

9696
// Use Security Headers
9797
app.UseSecurityHeaders();

Backend/Podium/Podium.API/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=PodiumDb;Trusted_Connection=true;MultipleActiveResultSets=true"
5353
},
5454
"JWT": {
55-
"Secret": "",
55+
"Secret": "Rhjb0x46c1Wja1GnQU9FLDJYwhqbnux2FgD69PUqsOM",
5656
"Issuer": "PodiumAPI",
5757
"Audience": "PodiumClient",
5858
"ExpirationMinutes": 60

0 commit comments

Comments
 (0)