Skip to content
Snippets Groups Projects
Commit 4f4f8511 authored by michael.minelli's avatar michael.minelli
Browse files

GitlabManager => Fix error on file creation or update

parent e78078b5
No related branches found
No related tags found
No related merge requests found
......@@ -164,7 +164,7 @@ class GitlabManager extends SharedGitlabManager {
}
private createUpdateFile(create: boolean, repoId: number, filePath: string, fileBase64: string, commitMessage: string, branch: string = 'main', authorName: string = 'Dojo', authorMail: string | undefined = undefined): Promise<RepositoryFileSchema> {
const gitFunction = create ? this.api.RepositoryFiles.create : this.api.RepositoryFiles.edit;
const gitFunction = create ? this.api.RepositoryFiles.create.bind(this.api) : this.api.RepositoryFiles.edit.bind(this.api);
return gitFunction(repoId, filePath, branch, fileBase64, commitMessage, {
encoding : 'base64',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment