mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 22:27:22 +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 && secretPath) {
|
||||||
if (!folders) throw BadRequestError({ message: "Folder not found" });
|
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) {
|
if (!folder) {
|
||||||
throw BadRequestError({ message: "Secret path not found" });
|
throw BadRequestError({ message: "Secret path not found" });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user