mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 12:27:28 +00:00
remove console.log
This commit is contained in:
@@ -239,7 +239,6 @@ export const secretServiceFactory = ({
|
|||||||
userId,
|
userId,
|
||||||
blindIndexCfg
|
blindIndexCfg
|
||||||
}: TFnSecretBlindIndexCheck) => {
|
}: TFnSecretBlindIndexCheck) => {
|
||||||
console.log(`inputSecrets=[${JSON.stringify(inputSecrets, null, 4)}] folderId=[${folderId}] isNew=[${isNew}] userId=[${userId}] blindIndexCfg=[${JSON.stringify(blindIndexCfg, null, 4)}] `)
|
|
||||||
const blindIndex2KeyName: Record<string, string> = {}; // used at audit log point
|
const blindIndex2KeyName: Record<string, string> = {}; // used at audit log point
|
||||||
const keyName2BlindIndex = await Promise.all(
|
const keyName2BlindIndex = await Promise.all(
|
||||||
inputSecrets.map(({ secretName }) =>
|
inputSecrets.map(({ secretName }) =>
|
||||||
@@ -254,8 +253,6 @@ export const secretServiceFactory = ({
|
|||||||
}, {})
|
}, {})
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log("keyName2BlindIndex:", JSON.stringify(keyName2BlindIndex, null, 4))
|
|
||||||
|
|
||||||
if (inputSecrets.some(({ type }) => type === SecretType.Personal) && !userId) {
|
if (inputSecrets.some(({ type }) => type === SecretType.Personal) && !userId) {
|
||||||
throw new BadRequestError({ message: "Missing user id for personal secret" });
|
throw new BadRequestError({ message: "Missing user id for personal secret" });
|
||||||
}
|
}
|
||||||
@@ -269,9 +266,6 @@ export const secretServiceFactory = ({
|
|||||||
userId
|
userId
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log("fnSecretBlindIndexCheck:", JSON.stringify(secrets, null, 4))
|
|
||||||
|
|
||||||
|
|
||||||
if (isNew) {
|
if (isNew) {
|
||||||
if (secrets.length) throw new BadRequestError({ message: "Secret already exist" });
|
if (secrets.length) throw new BadRequestError({ message: "Secret already exist" });
|
||||||
} else if (secrets.length !== inputSecrets.length)
|
} else if (secrets.length !== inputSecrets.length)
|
||||||
|
|||||||
Reference in New Issue
Block a user