aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretService.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-12-23 11:48:11 +0800
committercrupest <crupest@outlook.com>2022-12-23 11:48:11 +0800
commite19d5550d88c114acaab77799345135d63117fcc (patch)
treeeff2982e0e8ea24f7952bba4678a18d7dcb250d5 /docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretService.cs
parent5784abdad21724b1813bf54e0838ca0935cd1c01 (diff)
downloadcrupest-e19d5550d88c114acaab77799345135d63117fcc.tar.gz
crupest-e19d5550d88c114acaab77799345135d63117fcc.tar.bz2
crupest-e19d5550d88c114acaab77799345135d63117fcc.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.cs4
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)