Update secrets.ts

This commit is contained in:
Daniel Hougaard
2025-03-14 05:35:54 +04:00
parent 52b959a010
commit ffbd0479fa

View File

@@ -68,7 +68,7 @@ export default class SecretsClient {
try { try {
const res = await this.#apiInstance.apiV3SecretsRawGet( const res = await this.#apiInstance.apiV3SecretsRawGet(
{ {
viewSecretValue: options.viewSecretValue ? convertBool(options.viewSecretValue) : undefined, viewSecretValue: convertBool(options.viewSecretValue ?? true),
environment: options.environment, environment: options.environment,
workspaceId: options.projectId, workspaceId: options.projectId,
expandSecretReferences: convertBool(options.expandSecretReferences), expandSecretReferences: convertBool(options.expandSecretReferences),
@@ -125,7 +125,7 @@ export default class SecretsClient {
try { try {
const res = await this.#apiInstance.apiV3SecretsRawSecretNameGet( const res = await this.#apiInstance.apiV3SecretsRawSecretNameGet(
{ {
viewSecretValue: options.viewSecretValue ? convertBool(options.viewSecretValue) : undefined, viewSecretValue: convertBool(options.viewSecretValue ?? true),
environment: options.environment, environment: options.environment,
secretName: options.secretName, secretName: options.secretName,
workspaceId: options.projectId, workspaceId: options.projectId,