mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 10:27:26 +00:00
add log to secretRotationQueue process
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user