Skip to content

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

Update secret-rotation-v2-queue.ts

Daniel Hougaard368e00ea71a8
diff --git a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-queue.ts b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-queue.ts
index cd06bd7d0f..50c81f444e 100644
--- a/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-queue.ts
+++ b/backend/src/ee/services/secret-rotation-v2/secret-rotation-v2-queue.ts
@@ -84,18 +84,16 @@ export const secretRotationV2QueueServiceFactory = async ({
secretRotationV2DAL,
secretRotationV2Service
});
-
- return;
+ } else {
+ await queueService.queuePg(
+ QueueJobs.SecretRotationV2RotateSecrets,
+ {
+ rotationId: rotation.id,
+ queuedAt: currentTime
+ },
+ getSecretRotationRotateSecretJobOptions(rotation)
+ );
}
-
- await queueService.queuePg(
- QueueJobs.SecretRotationV2RotateSecrets,
- {
- rotationId: rotation.id,
- queuedAt: currentTime
- },
- getSecretRotationRotateSecretJobOptions(rotation)
- );
}
} catch (error) {
logger.error(error, "secretRotationV2Queue: Queue Rotations Error:");