rename to expandSecretReferences

This commit is contained in:
Maidul Islam
2024-05-04 22:05:57 -04:00
parent 61ae0e2fc7
commit ab79342743
3 changed files with 5 additions and 5 deletions

View File

@@ -166,7 +166,7 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {
workspaceSlug: z.string().trim().optional().describe(RAW_SECRETS.LIST.workspaceSlug),
environment: z.string().trim().optional().describe(RAW_SECRETS.LIST.environment),
secretPath: z.string().trim().default("/").transform(removeTrailingSlash).describe(RAW_SECRETS.LIST.secretPath),
expand: z
expandSecretReferences: z
.enum(["true", "false"])
.default("false")
.transform((value) => value === "true")
@@ -238,7 +238,7 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {
actor: req.permission.type,
actorOrgId: req.permission.orgId,
environment,
expand: req.query.expand,
expandSecretReferences: req.query.expandSecretReferences,
actorAuthMethod: req.permission.authMethod,
projectId: workspaceId,
path: secretPath,

View File

@@ -886,7 +886,7 @@ export const secretServiceFactory = ({
actorAuthMethod,
environment,
includeImports,
expand,
expandSecretReferences,
recursive
}: TGetSecretsRawDTO) => {
const botKey = await projectBotService.getBotKey(projectId);
@@ -915,7 +915,7 @@ export const secretServiceFactory = ({
)
}));
if (expand) {
if (expandSecretReferences) {
const expandSecrets = interpolateSecrets({
folderDAL,
projectId,

View File

@@ -138,7 +138,7 @@ export type TDeleteBulkSecretDTO = {
} & TProjectPermission;
export type TGetSecretsRawDTO = {
expand?: boolean;
expandSecretReferences?: boolean;
path: string;
environment: string;
includeImports?: boolean;