We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67dbdda commit e662dc2Copy full SHA for e662dc2
1 file changed
backend/src/api/integration/helpers/gitAuthenticate.ts
@@ -4,6 +4,11 @@ import PermissionChecker from '../../../services/user/permissionChecker'
4
5
export default async (req, res) => {
6
new PermissionChecker(req).validateHas(Permissions.values.tenantEdit)
7
- const payload = await new IntegrationService(req).gitConnectOrUpdate(req.body)
+ const integrationData = {
8
+ ...req.body,
9
+ remotes: req.body.remotes?.map((remote) => ({ url: remote, forkedFrom: null })) || [],
10
+ }
11
+
12
+ const payload = await new IntegrationService(req).gitConnectOrUpdate(integrationData)
13
await req.responseHandler.success(req, res, payload)
14
}
0 commit comments