requested changes

This commit is contained in:
Daniel Hougaard
2025-03-14 04:30:38 +04:00
parent 7fcf6b4a92
commit 52b959a010
2 changed files with 5 additions and 6 deletions

View File

@@ -68,7 +68,7 @@ export default class SecretsClient {
try {
const res = await this.#apiInstance.apiV3SecretsRawGet(
{
viewSecretValue: convertBool(options.viewSecretValue),
viewSecretValue: options.viewSecretValue ? convertBool(options.viewSecretValue) : undefined,
environment: options.environment,
workspaceId: options.projectId,
expandSecretReferences: convertBool(options.expandSecretReferences),
@@ -107,7 +107,6 @@ export default class SecretsClient {
if (!secrets.find(s => s.secretKey === importedSecret.secretKey)) {
secrets.push({
...importedSecret,
secretValueHidden: false,
secretPath: imp.secretPath,
// These fields are not returned by the API
updatedAt: new Date().toISOString(),
@@ -126,7 +125,7 @@ export default class SecretsClient {
try {
const res = await this.#apiInstance.apiV3SecretsRawSecretNameGet(
{
viewSecretValue: convertBool(options.viewSecretValue),
viewSecretValue: options.viewSecretValue ? convertBool(options.viewSecretValue) : undefined,
environment: options.environment,
secretName: options.secretName,
workspaceId: options.projectId,