Added suffixes to integrations

This commit is contained in:
Vladyslav Matsiiako
2023-08-29 22:17:48 -07:00
parent 85e5822ece
commit f6be86a26b
10 changed files with 50 additions and 6 deletions
+1 -1
View File
@@ -2066,7 +2066,7 @@ const syncSecretsCheckly = async ({
}
for await (const key of Object.keys(getSecretsRes)) {
if (!(key in secrets)) {
if (!(key in secrets) && key.endsWith(integration?.secretSuffix)) {
// delete secret
await standardRequest.delete(`${INTEGRATION_CHECKLY_API_URL}/v1/variables/${key}`, {
headers: {