add secretGroup to integrationController.ts

This commit is contained in:
Chukwunonso Frank
2023-07-26 18:19:54 +01:00
parent c2be6674b1
commit 46545c1462
9 changed files with 19 additions and 11 deletions
@@ -27,7 +27,8 @@ export const createIntegration = async (req: Request, res: Response) => {
owner,
path,
region,
secretPath
secretPath,
secretGroup
} = req.body;
const folders = await Folder.findOne({
@@ -61,6 +62,7 @@ export const createIntegration = async (req: Request, res: Response) => {
path,
region,
secretPath,
secretGroup,
integration: req.integrationAuth.integration,
integrationAuth: new Types.ObjectId(integrationAuthId)
}).save();