Skip to content

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

Update secret-v2-bridge-service.ts

Daniel Hougaard07b93c5cec7a
diff --git a/backend/src/services/secret-v2-bridge/secret-v2-bridge-service.ts b/backend/src/services/secret-v2-bridge/secret-v2-bridge-service.ts
index 1891b3eac6..d6ba028565 100644
--- a/backend/src/services/secret-v2-bridge/secret-v2-bridge-service.ts
+++ b/backend/src/services/secret-v2-bridge/secret-v2-bridge-service.ts
@@ -964,7 +964,7 @@ export const secretV2BridgeServiceFactory = ({
const getSecretById = async ({ actorId, actor, actorOrgId, actorAuthMethod, secretId }: TGetASecretByIdDTO) => {
const secret = await secretDAL.findOneWithTags({
- id: secretId
+ [`${TableName.SecretV2}.id` as "id"]: secretId
});
if (!secret) {