diff options
author | crupest <crupest@outlook.com> | 2022-12-23 11:48:11 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-12-23 11:48:11 +0800 |
commit | d1e2a504b0543f00a9c9d9602ba7f120bb0e8895 (patch) | |
tree | eff2982e0e8ea24f7952bba4678a18d7dcb250d5 /docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretService.cs | |
parent | 93924947fecca4ddad670f1f1768f32063cfec3a (diff) | |
download | crupest-d1e2a504b0543f00a9c9d9602ba7f120bb0e8895.tar.gz crupest-d1e2a504b0543f00a9c9d9602ba7f120bb0e8895.tar.bz2 crupest-d1e2a504b0543f00a9c9d9602ba7f120bb0e8895.zip |
Develop secret api. v60
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 c2242ff..9a0ec95 100644 --- a/docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretService.cs +++ b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretService.cs @@ -19,7 +19,7 @@ public class SecretService : CrudService<SecretInfo>, ISecretService .Add(nameof(SecretInfo.Key), SecretsConstants.SecretManagementKey) .Add(nameof(SecretInfo.Secret), "crupest") .Add(nameof(SecretInfo.Description), "This is the init key. Please revoke it immediately after creating a new one."); - _table.Insert(connection, insertClause); + _table.Insert(connection, insertClause, out var _); transaction.Commit(); } @@ -30,7 +30,7 @@ public class SecretService : CrudService<SecretInfo>, ISecretService .Add(nameof(SecretInfo.Key), key) .Add(nameof(SecretInfo.Secret), secret) .Add(nameof(SecretInfo.Description), "Test secret."); - _table.Insert(connection, insertClause); + _table.Insert(connection, insertClause, out var _); } public List<string> GetPermissions(string secret) |