From d1e2a504b0543f00a9c9d9602ba7f120bb0e8895 Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 23 Dec 2022 11:48:11 +0800 Subject: Develop secret api. v60 --- .../CrupestApi/CrupestApi.Commons/Secrets/SecretService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretService.cs') 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, 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, 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 GetPermissions(string secret) -- cgit v1.2.3