Skip to content

Commit d1fade5

Browse files
Seeder updated. Payment Service changed to Library Service
1 parent 0ace566 commit d1fade5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CentralizedLoggingApi/DbSeeder.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static void Seed(IServiceProvider serviceProvider)
1616
if (!context.Applications.Any())
1717
{
1818
context.Applications.AddRange(
19-
new Application { Name = "Payment Service", Environment = "Production", ApiKey = Guid.NewGuid().ToString() },
19+
new Application { Name = "Library Service", Environment = "Production", ApiKey = Guid.NewGuid().ToString() },
2020
new Application { Name = "User Management", Environment = "Staging", ApiKey = Guid.NewGuid().ToString() },
2121
new Application { Name = "Reporting API", Environment = "Development", ApiKey = Guid.NewGuid().ToString() },
2222
new Application { Name = "Integration Portal", Environment = "Development", ApiKey = Guid.NewGuid().ToString() }
@@ -27,7 +27,7 @@ public static void Seed(IServiceProvider serviceProvider)
2727
// Seed ErrorLogs
2828
if (!context.ErrorLogs.Any())
2929
{
30-
var app1 = context.Applications.First(a => a.Name == "Payment Service");
30+
var app1 = context.Applications.First(a => a.Name == "Library Service");
3131
var app2 = context.Applications.First(a => a.Name == "User Management");
3232

3333
context.ErrorLogs.AddRange(
@@ -36,8 +36,8 @@ public static void Seed(IServiceProvider serviceProvider)
3636
ApplicationId = app1.Id,
3737
Severity = "Error",
3838
Message = "Null reference exception in payment processing",
39-
StackTrace = "at PaymentService.Process()...",
40-
Source = "PaymentService",
39+
StackTrace = "at LibraryService.Process()...",
40+
Source = "LibrarytService",
4141
UserId = "user123",
4242
RequestId = Guid.NewGuid().ToString(),
4343
LoggedAt = DateTime.UtcNow

0 commit comments

Comments
 (0)