Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix delete secret scans after git app uninstall

Maidul Islam257547ff4daf
diff --git a/backend-pg/src/ee/services/secret-scanning/secret-scanning-service.ts b/backend-pg/src/ee/services/secret-scanning/secret-scanning-service.ts
index 8becbfef33..c293c9dd74 100644
--- a/backend-pg/src/ee/services/secret-scanning/secret-scanning-service.ts
+++ b/backend-pg/src/ee/services/secret-scanning/secret-scanning-service.ts
@@ -170,8 +170,8 @@ export const secretScanningServiceFactory = ({
await secretScanningDal.transaction(async (tx) => {
if (repositoryIds.length) {
await Promise.all(
- Object.keys(repositoryIds).map((key) =>
- secretScanningDal.delete({ repositoryId: key }, tx)
+ repositoryIds.map((repoId) =>
+ secretScanningDal.delete({ repositoryId: repoId }, tx)
)
);
}