mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 19:28:16 +00:00
Fix lint issue
This commit is contained in:
@@ -558,7 +558,7 @@ export const pitServiceFactory = ({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return await folderCommitDAL.transaction(async (trx) => {
|
const response = await folderCommitDAL.transaction(async (trx) => {
|
||||||
const targetFolder = await folderDAL.findBySecretPath(projectId, environment, secretPath, trx);
|
const targetFolder = await folderDAL.findBySecretPath(projectId, environment, secretPath, trx);
|
||||||
if (!targetFolder)
|
if (!targetFolder)
|
||||||
throw new NotFoundError({
|
throw new NotFoundError({
|
||||||
@@ -566,7 +566,7 @@ export const pitServiceFactory = ({
|
|||||||
name: "CreateManySecret"
|
name: "CreateManySecret"
|
||||||
});
|
});
|
||||||
const commitChanges: TCommitResourceChangeDTO[] = [];
|
const commitChanges: TCommitResourceChangeDTO[] = [];
|
||||||
const folderChanges: { create: string[], update: string[], delete: string[] } = {
|
const folderChanges: { create: string[]; update: string[]; delete: string[] } = {
|
||||||
create: [],
|
create: [],
|
||||||
update: [],
|
update: [],
|
||||||
delete: []
|
delete: []
|
||||||
@@ -610,7 +610,7 @@ export const pitServiceFactory = ({
|
|||||||
tx: trx,
|
tx: trx,
|
||||||
commitChanges
|
commitChanges
|
||||||
});
|
});
|
||||||
folderChanges.update.push(...updatedFolders.newFolders.map((folder) => folder.id))
|
folderChanges.update.push(...updatedFolders.newFolders.map((folder) => folder.id));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((changes.folders?.delete?.length ?? 0) > 0) {
|
if ((changes.folders?.delete?.length ?? 0) > 0) {
|
||||||
@@ -629,7 +629,7 @@ export const pitServiceFactory = ({
|
|||||||
tx: trx,
|
tx: trx,
|
||||||
commitChanges
|
commitChanges
|
||||||
});
|
});
|
||||||
folderChanges.delete.push(...deletedFolders.folders.map((folder) => folder.id))
|
folderChanges.delete.push(...deletedFolders.folders.map((folder) => folder.id));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (policy) {
|
if (policy) {
|
||||||
@@ -752,6 +752,8 @@ export const pitServiceFactory = ({
|
|||||||
folderChanges
|
folderChanges
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return response;
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user