Fix: Added explicit SecretType type

This commit is contained in:
Daniel Hougaard
2024-06-21 15:23:31 +02:00
parent c43a18904d
commit 9c06cab99d

View File

@ -14,6 +14,7 @@ import {
EncryptedSecret,
EncryptedSecretVersion,
GetSecretVersionsDTO,
SecretType,
TGetProjectSecretsAllEnvDTO,
TGetProjectSecretsDTO,
TGetProjectSecretsKey
@ -77,7 +78,7 @@ export const decryptSecrets = (
skipMultilineEncoding: encSecret.skipMultilineEncoding
};
if (encSecret.type === "personal") {
if (encSecret.type === SecretType.Personal) {
personalSecrets[decryptedSecret.key] = {
id: encSecret.id,
value: secretValue