mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
fix(folders): changed to secret path in controllers for get by path op
This commit is contained in:
@@ -661,7 +661,7 @@ export const getSecrets = async (req: Request, res: Response) => {
|
||||
|
||||
if (folders && secretPath) {
|
||||
if (!folders) throw BadRequestError({ message: "Folder not found" });
|
||||
const folder = getFolderByPath(folders.nodes, folderId as string);
|
||||
const folder = getFolderByPath(folders.nodes, secretPath as string);
|
||||
if (!folder) {
|
||||
throw BadRequestError({ message: "Secret path not found" });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user