Skip to content

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

update lint issues

Matheus Nogueirad3150a64daa4
diff --git a/backend/src/ee/services/insights/insights-service.ts b/backend/src/ee/services/insights/insights-service.ts
index a1e06e1df3..348ccded34 100644
--- a/backend/src/ee/services/insights/insights-service.ts
+++ b/backend/src/ee/services/insights/insights-service.ts
@@ -510,7 +510,10 @@ export const insightsServiceFactory = ({
const project = await projectDAL.findById(dto.projectId);
if (!project.secretBlindIndexEnabled) {
- return { secretBlindIndexEnabled: false as const, groups: [] as { secrets: { key: string; environment: string; secretPath: string }[] }[] };
+ return {
+ secretBlindIndexEnabled: false as const,
+ groups: [] as { secrets: { key: string; environment: string; secretPath: string }[] }[]
+ };
}
const rawGroups = await secretV2BridgeDAL.findDuplicatedSecretValues(dto.projectId, {
diff --git a/backend/src/services/project/project-queue.ts b/backend/src/services/project/project-queue.ts
index 29fb134413..fe0af1407d 100644
--- a/backend/src/services/project/project-queue.ts
+++ b/backend/src/services/project/project-queue.ts
@@ -693,11 +693,11 @@ export const projectQueueFactory = ({
const updates: { id: string; secretValueBlindIndex: string }[] = [];
for (const secret of secrets) {
- if (!secret.encryptedValue) continue;
-
- const decryptedValue = decryptor({ cipherTextBlob: secret.encryptedValue });
- const blindIndex = await generateSecretBlindIndex(decryptedValue);
- updates.push({ id: secret.id, secretValueBlindIndex: blindIndex });
+ if (secret.encryptedValue) {
+ const decryptedValue = decryptor({ cipherTextBlob: secret.encryptedValue });
+ const blindIndex = await generateSecretBlindIndex(decryptedValue);
+ updates.push({ id: secret.id, secretValueBlindIndex: blindIndex });
+ }
}
if (updates.length > 0) {
@@ -710,7 +710,7 @@ export const projectQueueFactory = ({
);
// Prevents job from being marked as stalled
- job.updateProgress(totalProcessed);
+ await job.updateProgress(totalProcessed);
if (secrets.length < BATCH_SIZE) break;