fix: resolving provider not found error for secret rotation

This commit is contained in:
=
2024-07-03 20:39:02 +05:30
parent 3ac6b7be65
commit d7023881e5
2 changed files with 4 additions and 4 deletions
@@ -331,7 +331,7 @@ export const secretRotationQueueFactory = ({
logger.info("Finished rotating: rotation id: ", rotationId);
} catch (error) {
logger.error(error);
logger.error(error, "Failed to execute secret rotation");
if (error instanceof DisableRotationErrors) {
if (job.id) {
await queue.stopRepeatableJobByJobId(QueueName.SecretRotation, job.id);