mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 12:27:28 +00:00
misc: addressed naming suggestion
This commit is contained in:
@@ -169,18 +169,18 @@ export const registerSecretFolderRouter = async (server: FastifyZodProvider) =>
|
|||||||
});
|
});
|
||||||
|
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
req.body.folders.map(async (folder, ind) => {
|
req.body.folders.map(async (folder, index) => {
|
||||||
await server.services.auditLog.createAuditLog({
|
await server.services.auditLog.createAuditLog({
|
||||||
...req.auditLogInfo,
|
...req.auditLogInfo,
|
||||||
projectId,
|
projectId,
|
||||||
event: {
|
event: {
|
||||||
type: EventType.UPDATE_FOLDER,
|
type: EventType.UPDATE_FOLDER,
|
||||||
metadata: {
|
metadata: {
|
||||||
environment: oldFolders[ind].envId,
|
environment: oldFolders[index].envId,
|
||||||
folderId: oldFolders[ind].id,
|
folderId: oldFolders[index].id,
|
||||||
folderPath: folder.path,
|
folderPath: folder.path,
|
||||||
newFolderName: newFolders[ind].name,
|
newFolderName: newFolders[index].name,
|
||||||
oldFolderName: oldFolders[ind].name
|
oldFolderName: oldFolders[index].name
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user