feat: new get-by-id for folder for tf

This commit is contained in:
=
2024-07-12 14:24:13 +05:30
parent ebbccdb857
commit 3c63346d3a
5 changed files with 57 additions and 3 deletions
@@ -322,7 +322,7 @@ export const secretFolderDALFactory = (db: TDbClient) => {
.first();
if (folder) {
const { envId, envName, envSlug, ...el } = folder;
return { ...el, environment: { envId, envName, envSlug } };
return { ...el, environment: { envId, envName, envSlug }, envId };
}
} catch (error) {
throw new DatabaseError({ error, name: "Find by id" });