diff options
Diffstat (limited to 'docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretService.cs')
-rw-r--r-- | docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretService.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretService.cs b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretService.cs index b8a1bbe..c693d8d 100644 --- a/docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretService.cs +++ b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretService.cs @@ -14,11 +14,11 @@ public class SecretService : CrudService<SecretInfo>, ISecretService _logger = loggerFactory.CreateLogger<SecretService>(); } - protected override void AfterMigrate(IDbConnection connection, TableInfo table, ILoggerFactory loggerFactory) + protected override void AfterMigrate(IDbConnection connection, TableInfo table) { if (table.SelectCount(connection) == 0) { - loggerFactory.CreateLogger<SecretService>().LogInformation("No secrets found, insert default secrets."); + _logger.LogInformation("No secrets found, insert default secrets."); using var transaction = connection.BeginTransaction(); var insertClause = InsertClause.Create() .Add(nameof(SecretInfo.Key), SecretsConstants.SecretManagementKey) |