feat(secret-rotation): changed to mysql2 client and refactored queue util functions

This commit is contained in:
Akhil Mohan
2023-11-01 22:22:46 +05:30
parent c1ea441e3a
commit 75eeda4278
6 changed files with 342 additions and 273 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import { SecretRotation } from "./models";
import { client, getEncryptionKey, getRootEncryptionKey } from "../../config";
import { BadRequestError } from "../../utils/errors";
import Ajv from "ajv";
import { removeSecretRotationQueue, startSecretRotationQueue } from "./queue";
import { removeSecretRotationQueue, startSecretRotationQueue } from "./queue/queue";
import {
ALGORITHM_AES_256_GCM,
ENCODING_SCHEME_BASE64,