Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix lint errors

x03220588dd5ea26320
diff --git a/backend/src/ee/services/pam-resource/shared/dependency-sync-fns.ts b/backend/src/ee/services/pam-resource/shared/dependency-sync-fns.ts
index 62e89cb47d..17de74feed 100644
--- a/backend/src/ee/services/pam-resource/shared/dependency-sync-fns.ts
+++ b/backend/src/ee/services/pam-resource/shared/dependency-sync-fns.ts
@@ -195,7 +195,9 @@ export const syncDependenciesAfterRotation = async ({
const enc = await getEncryptor();
const { cipherTextBlob } = enc({ plainText: Buffer.from(msg) });
encryptedLastSyncMessage = cipherTextBlob;
- } catch {}
+ } catch (err) {
+ logger.error(err, `[DependencySync] Failed to encrypt error message for [depId=${dep.id}]`);
+ }
// eslint-disable-next-line no-await-in-loop
await ctx.pamAccountDependenciesDAL.updateById(dep.id, {
@@ -252,7 +254,9 @@ export const syncDependenciesAfterRotation = async ({
plainText: Buffer.from(errorMessage)
});
encryptedLastSyncMessage = cipherTextBlob;
- } catch {}
+ } catch (err) {
+ logger.error(err, `[DependencySync] Failed to encrypt error message for [depId=${dep.id}]`);
+ }
// eslint-disable-next-line no-await-in-loop
await ctx.pamAccountDependenciesDAL.updateById(dep.id, {