add log to secretRotationQueue process

This commit is contained in:
Maidul Islam
2023-11-01 16:49:31 -04:00
parent 9cc99e41b8
commit a07bd5ad40
@@ -30,6 +30,7 @@ import {
const secretRotationQueue = new Queue("secret-rotation-service", process.env.REDIS_URL as string); const secretRotationQueue = new Queue("secret-rotation-service", process.env.REDIS_URL as string);
secretRotationQueue.process(async (job: Job) => { secretRotationQueue.process(async (job: Job) => {
logger.info(`secretRotationQueue.process: [rotationDocument=${job.data.rotationDocId}]`);
const rotationStratDocId = job.data.rotationDocId; const rotationStratDocId = job.data.rotationDocId;
const secretRotation = await SecretRotation.findById(rotationStratDocId) const secretRotation = await SecretRotation.findById(rotationStratDocId)
.select("+encryptedData +encryptedDataTag +encryptedDataIV +keyEncoding") .select("+encryptedData +encryptedDataTag +encryptedDataIV +keyEncoding")