Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

46 add the word ai to default creating petrol #47

Closed
Closed
33 changes: 22 additions & 11 deletions CheckDrive.Api/CheckDrive.Api/appsettings.Development.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,39 @@
{
"Serilog": {
"MinimumLevel": "Debug"
"MinimumLevel": "Debug",
"WriteTo": [
{
"Name": "Console",
"Args": {
"formatter": {
"type": "Serilog.Formatting.Compact.CompactJsonFormatter, Serilog.Formatting.Compact"
}
}
},
{
"Name": "Seq",
"Args": {
"serverUrl": "http://localhost:5341"
}
}
]
},
"ConnectionStrings": {
"DefaultConnection": "db-connection"
},
"JwtOptions": {
"SecretKey": "EuLGY1dogw7ridXwBILfwOCkUoK1Odjx",
"ExpiresInHours": 1
"SecretKey": "fa5195d6-63ef-4906-ab01-ffcdfafe2839",
"ExpiresInHours": 12
},
"EmailConfigurations": {
"From": "email-account@gmail.com",
"Server": "smtp.gmail.com",
"Port": 465,
"Username": "ATPGarage.uz",
"Password": "account-password"
"Password": "fa5195d6-63ef-4906-ab01-ffcdfafe2839"
},
"SmsConfigurations": {
"Token": "sms-token",
"Token": "fa5195d6-63ef-4906-ab01-ffcdfafe2839",
"ApiUrl": "https://notify.eskiz.uz/api/message/sms/send"
},
"DataSeed": {
Expand All @@ -26,11 +42,6 @@
"DoctorsCount": 5,
"MechanicsCount": 10,
"OperatorsCount": 10,
"DispatchersCount": 10,
"ManagersCount": 10
},
"HangfireSettings": {
"Username": "user",
"Password": "1234"
"DispatchersCount": 10
}
}
58 changes: 1 addition & 57 deletions CheckDrive.Api/CheckDrive.Api/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,63 +46,7 @@
"propertyName": "RequestLength"
}
}
],
"WriteTo": [
{
"Name": "Console",
"Args": {
"formatter": {
"type": "Serilog.Formatting.Compact.CompactJsonFormatter, Serilog.Formatting.Compact"
}
}
},
{
"Name": "File",
"Args": {
"path": "Logs/logs_.txt",
"restrictedToMinimumLevel": "Information",
"rollingInterval": "Day",
"retainedFileCountLimit": 7,
"formatter": {
"type": "Serilog.Formatting.Json.JsonFormatter, Serilog",
"renderMessage": true
}
}
},
{
"Name": "File",
"Args": {
"path": "Logs/errors_.txt",
"restrictedToMinimumLevel": "Error",
"rollingInterval": "Day",
"retainedFileCountLimit": 7,
"formatter": {
"type": "Serilog.Formatting.Json.JsonFormatter, Serilog",
"renderMessage": true
}
}
},
{
"Name": "Seq",
"Args": {
"serverUrl": "http://localhost:5341"
}
},
{
"Name": "Sentry",
"Args": {
"Dsn": "",
"SendDefaultPii": true,
"MaxRequestBodySize": "Always",
"MinimumBreadcrumbLevel": "Debug",
"MinimumEventLevel": "Warning",
"AttachStackTrace": true,
"Debug": true,
"DiagnosticLevel": "Error",
"TracesSampleRate": 1.0
}
}
]
},
"SyncfusionKey": "key"
"SyncfusionKey": "Syncfusion-Key"
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ static DevelopmentDatabaseSeeder()
}

private static readonly List<string> _oilMarks = [
"80", "90", "95", "98", "100", "110", "Diesel"
"Ai-80", "Ai-90", "Ai-95", "Ai-98", "Ai-100", "Ai-110", "Dizel"
];

public async Task SeedDatabaseAsync(ICheckDriveDbContext context, UserManager<IdentityUser> userManager, DataSeedOptions options)
Expand Down
Loading