mirror of
https://github.com/Infisical/infisical.git
synced 2026-05-02 03:02:03 -04: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