fix delete secret scans after git app uninstall

This commit is contained in:
Maidul Islam
2024-01-16 18:52:20 -05:00
committed by Akhil Mohan
parent da4ae3c503
commit 257547ff4d

View File

@@ -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)
)
);
}