File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ type Metadata struct {
1414 Author string `json:"author,omitempty"`
1515 License string `json:"license,omitempty"`
1616 ProjectURL string `json:"project_url,omitempty"`
17- RepositoryURL string `json:"repository_url,omitempty"`
1817 Keywords []string `json:"keywords,omitempty"`
1918 Dependencies map [string ]string `json:"dependencies,omitempty"`
2019 DevelopmentDependencies map [string ]string `json:"development_dependencies,omitempty"`
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ func UploadPackage(ctx *context.Context) {
169169 return
170170 }
171171
172- repo , err := repo_model .GetRepositoryByURL (ctx , npmPackage .Metadata .RepositoryURL )
172+ repo , err := repo_model .GetRepositoryByURL (ctx , npmPackage .Metadata .Repository . URL )
173173 if err == nil {
174174 canWrite := repo .OwnerID == ctx .Doer .ID
175175
You can’t perform that action at this time.
0 commit comments