mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 11:27:32 +00:00
fix delete secret scans after git app uninstall
This commit is contained in:
committed by
Akhil Mohan
parent
da4ae3c503
commit
257547ff4d
@@ -170,8 +170,8 @@ export const secretScanningServiceFactory = ({
|
|||||||
await secretScanningDal.transaction(async (tx) => {
|
await secretScanningDal.transaction(async (tx) => {
|
||||||
if (repositoryIds.length) {
|
if (repositoryIds.length) {
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
Object.keys(repositoryIds).map((key) =>
|
repositoryIds.map((repoId) =>
|
||||||
secretScanningDal.delete({ repositoryId: key }, tx)
|
secretScanningDal.delete({ repositoryId: repoId }, tx)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user