misc: addressed naming suggestion

This commit is contained in:
Sheen Capadngan
2024-05-10 22:52:08 +08:00
parent b93aaffe77
commit 9880977098

View File

@@ -169,18 +169,18 @@ export const registerSecretFolderRouter = async (server: FastifyZodProvider) =>
});
await Promise.all(
req.body.folders.map(async (folder, ind) => {
req.body.folders.map(async (folder, index) => {
await server.services.auditLog.createAuditLog({
...req.auditLogInfo,
projectId,
event: {
type: EventType.UPDATE_FOLDER,
metadata: {
environment: oldFolders[ind].envId,
folderId: oldFolders[ind].id,
environment: oldFolders[index].envId,
folderId: oldFolders[index].id,
folderPath: folder.path,
newFolderName: newFolders[ind].name,
oldFolderName: oldFolders[ind].name
newFolderName: newFolders[index].name,
oldFolderName: oldFolders[index].name
}
}
});