fix: custom gitlab git user

This commit is contained in:
Andras Bacsai 2023-01-10 11:15:21 +01:00
parent 2391850218
commit f778b5a12d
2 changed files with 2 additions and 3 deletions

View File

@ -103,7 +103,7 @@ export async function saveGitHubSource(request: FastifyRequest<SaveGitHubSource>
const { teamId } = request.user
const { id } = request.params
let { name, htmlUrl, apiUrl, organization, customPort, customUser, isSystemWide } = request.body
let { name, htmlUrl, apiUrl, organization, customPort, isSystemWide } = request.body
if (customPort) customPort = Number(customPort)
if (id === 'new') {
@ -116,7 +116,6 @@ export async function saveGitHubSource(request: FastifyRequest<SaveGitHubSource>
apiUrl,
organization,
customPort,
customUser,
isSystemWide,
type: 'github',
teams: { connect: { id: teamId } }

View File

@ -72,7 +72,7 @@
htmlUrl: source.htmlUrl.replace(/\/$/, ''),
apiUrl: source.apiUrl.replace(/\/$/, ''),
customPort: source.customPort,
customuser: source.customuser
customUser: source.customUser
});
return addToast({
message: 'Configuration saved.',