Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

added default case to switch

x03220543c936e633d0
diff --git a/backend/src/ee/services/pam-account/pam-account-service.ts b/backend/src/ee/services/pam-account/pam-account-service.ts
index 0316ecebfd..7d766a5321 100644
--- a/backend/src/ee/services/pam-account/pam-account-service.ts
+++ b/backend/src/ee/services/pam-account/pam-account-service.ts
@@ -484,24 +484,28 @@ export const pamAccountServiceFactory = ({
switch (resourceType) {
case PamResource.Postgres:
- case PamResource.MySQL: {
- const connectionCredentials = await decryptResourceConnectionDetails({
- encryptedConnectionDetails: resource.encryptedConnectionDetails,
- kmsService,
- projectId: account.projectId
- });
+ case PamResource.MySQL:
+ {
+ const connectionCredentials = await decryptResourceConnectionDetails({
+ encryptedConnectionDetails: resource.encryptedConnectionDetails,
+ kmsService,
+ projectId: account.projectId
+ });
- const credentials = await decryptAccountCredentials({
- encryptedCredentials: account.encryptedCredentials,
- kmsService,
- projectId: account.projectId
- });
+ const credentials = await decryptAccountCredentials({
+ encryptedCredentials: account.encryptedCredentials,
+ kmsService,
+ projectId: account.projectId
+ });
- metadata = {
- username: credentials.username,
- database: connectionCredentials.database
- };
- }
+ metadata = {
+ username: credentials.username,
+ database: connectionCredentials.database
+ };
+ }
+ break;
+ default:
+ break;
}
return {