Update secret-rotation-v2-queue.ts

This commit is contained in:
Daniel Hougaard
2025-08-08 20:16:41 +04:00
parent 23237dd055
commit 368e00ea71

View File

@@ -84,18 +84,16 @@ export const secretRotationV2QueueServiceFactory = async ({
secretRotationV2DAL, secretRotationV2DAL,
secretRotationV2Service secretRotationV2Service
}); });
} else {
return; 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) { } catch (error) {
logger.error(error, "secretRotationV2Queue: Queue Rotations Error:"); logger.error(error, "secretRotationV2Queue: Queue Rotations Error:");