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 {
14
14
Author string `json:"author,omitempty"`
15
15
License string `json:"license,omitempty"`
16
16
ProjectURL string `json:"project_url,omitempty"`
17
- RepositoryURL string `json:"repository_url,omitempty"`
18
17
Keywords []string `json:"keywords,omitempty"`
19
18
Dependencies map [string ]string `json:"dependencies,omitempty"`
20
19
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) {
169
169
return
170
170
}
171
171
172
- repo , err := repo_model .GetRepositoryByURL (ctx , npmPackage .Metadata .RepositoryURL )
172
+ repo , err := repo_model .GetRepositoryByURL (ctx , npmPackage .Metadata .Repository . URL )
173
173
if err == nil {
174
174
canWrite := repo .OwnerID == ctx .Doer .ID
175
175
You can’t perform that action at this time.
0 commit comments