fix: unique secret by application

css: redesign secret page
This commit is contained in:
Andras Bacsai
2022-02-12 15:23:58 +01:00
parent e7a6ecf95b
commit 45f920f802
8 changed files with 166 additions and 115 deletions

View File

@@ -33,7 +33,7 @@ export const post: RequestHandler = async (event) => {
const found = await db.isSecretExists({ id, name });
if (found) {
throw {
error: `Secret ${name} already exists`
error: `Secret ${name} already exists.`
};
} else {
await db.createSecret({ id, name, value, isBuildSecret });