Fix telemetry issue for signup secrets

This commit is contained in:
Tuan Dang
2023-08-23 17:37:01 +07:00
parent 8b381b2b80
commit c342b22d49
3 changed files with 10 additions and 11 deletions
+2 -1
View File
@@ -38,7 +38,7 @@ const fetchProjectEncryptedSecrets = async (
folderId?: string,
secretPath?: string
) => {
const { data } = await apiRequest.get<{ secrets: EncryptedSecret[] }>("/api/v2/secrets", {
const { data } = await apiRequest.get<{ secrets: EncryptedSecret[] }>("/api/v3/secrets", {
params: {
environment: env,
workspaceId,
@@ -46,6 +46,7 @@ const fetchProjectEncryptedSecrets = async (
secretPath
}
});
return data.secrets;
};