remove console.log

This commit is contained in:
Maidul Islam
2024-01-27 17:04:02 -05:00
parent a191f437e9
commit 3f5ab2a09e

View File

@@ -239,7 +239,6 @@ export const secretServiceFactory = ({
userId,
blindIndexCfg
}: 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 keyName2BlindIndex = await Promise.all(
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) {
throw new BadRequestError({ message: "Missing user id for personal secret" });
}
@@ -269,9 +266,6 @@ export const secretServiceFactory = ({
userId
);
console.log("fnSecretBlindIndexCheck:", JSON.stringify(secrets, null, 4))
if (isNew) {
if (secrets.length) throw new BadRequestError({ message: "Secret already exist" });
} else if (secrets.length !== inputSecrets.length)