Skip to content

Commit

Permalink
Alias Type Change
Browse files Browse the repository at this point in the history
Signed-off-by: the-johnwick <[email protected]>
  • Loading branch information
the-johnwick committed Oct 3, 2024
1 parent 717ccc2 commit 75b4951
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/api/controllers/gitprovider/dto/dto.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ type SetGitProviderConfig struct {
Username *string `json:"username,omitempty" validate:"optional"`
Token string `json:"token" validate:"required"`
BaseApiUrl *string `json:"baseApiUrl,omitempty" validate:"optional"`
Alias string `json:"alias" validate:"optional"`
Alias *string `json:"alias" validate:"optional"`
} // @name SetGitProviderConfig
2 changes: 1 addition & 1 deletion pkg/api/controllers/gitprovider/gitprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func SetGitProvider(ctx *gin.Context) {
ProviderId: setConfigDto.ProviderId,
Token: setConfigDto.Token,
BaseApiUrl: setConfigDto.BaseApiUrl,
Alias: setConfigDto.Alias,
Alias: *setConfigDto.Alias,
}

if setConfigDto.Username != nil {
Expand Down

0 comments on commit 75b4951

Please sign in to comment.