From bf4551f50fd4ce118ade1137c50060e041b05304 Mon Sep 17 00:00:00 2001 From: Louis Bompart Date: Fri, 22 Apr 2022 14:12:48 -0400 Subject: [PATCH] chore(cleaning): clean user-generated api key (#763) --- scripts/cleaning/delete-api-keys.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/cleaning/delete-api-keys.js b/scripts/cleaning/delete-api-keys.js index 2d0fd65a87..b1bc3158c5 100644 --- a/scripts/cleaning/delete-api-keys.js +++ b/scripts/cleaning/delete-api-keys.js @@ -10,7 +10,8 @@ config({path: join(homedir(), '.env')}); function wasCreatedByTheCli(testRunId = '') { return (key) => (key.displayName?.startsWith(`cli-idwindows-latest-${testRunId}`) || - key.displayName?.startsWith(`cli-idubuntu-latest-${testRunId}`)) && + key.displayName?.startsWith(`cli-idubuntu-latest-${testRunId}`) || + key.displayName?.startsWith(`cli-id${testRunId}`)) && key.description === 'Generated by the Coveo CLI'; }