Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Fix Git gateway init
Browse files Browse the repository at this point in the history
  • Loading branch information
soceanainn committed Apr 2, 2024
1 parent 226d37f commit 39a057e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/core/src/backends/git-gateway/implementation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,13 @@ export default class GitGateway implements BackendClass {
};

if (this.backendType === 'github') {
this.api = new GitHubAPI(apiConfig);
this.backend = new GitHubBackend(this.config, { ...this.options, API: this.api });
this.backend = new GitHubBackend(this.config, { ...this.options });
this.api = new GitHubAPI({
...apiConfig,
getUser: this.backend.currentUser,
getRepo: this.backend.getRepo,
});
this.backend.api = this.api;
} else if (this.backendType === 'gitlab') {
this.api = new GitLabAPI(apiConfig);
this.backend = new GitLabBackend(this.config, { ...this.options, API: this.api });
Expand Down

0 comments on commit 39a057e

Please sign in to comment.