Patch GitHub integration for organization repos by including correct owner

This commit is contained in:
Tuan Dang
2023-01-18 16:33:24 +07:00
parent 2235069e78
commit 3a6b2084bc
7 changed files with 35 additions and 22 deletions
@@ -41,7 +41,8 @@ export const updateIntegration = async (req: Request, res: Response) => {
isActive,
target, // vercel-specific integration param
context, // netlify-specific integration param
siteId // netlify-specific integration param
siteId, // netlify-specific integration param
owner // github-specific integration param
} = req.body;
integration = await Integration.findOneAndUpdate(
@@ -54,7 +55,8 @@ export const updateIntegration = async (req: Request, res: Response) => {
app,
target,
context,
siteId
siteId,
owner
},
{
new: true