Skip to content

Commit

Permalink
Fix bug of pa-api
Browse files Browse the repository at this point in the history
  • Loading branch information
spiegel-im-spiegel committed Oct 29, 2019
1 parent 7e30199 commit b80d83b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/pa/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (i *Item) Creators() []entity.Creator {
}

func (i *Item) Publisher() string {
if i.ItemInfo != nil && i.ItemInfo.ByLineInfo != nil {
if i.ItemInfo != nil && i.ItemInfo.ByLineInfo != nil && i.ItemInfo.ByLineInfo.Manufacturer != nil {
return i.ItemInfo.ByLineInfo.Manufacturer.DisplayValue
}
return ""
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ require (
github.com/spiegel-im-spiegel/errs v0.3.2
github.com/spiegel-im-spiegel/gocli v0.10.1
github.com/spiegel-im-spiegel/openbd-api v0.2.3
github.com/spiegel-im-spiegel/pa-api v0.4.1
github.com/spiegel-im-spiegel/pa-api v0.5.0
)
5 changes: 2 additions & 3 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgf
github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY=
github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
Expand Down Expand Up @@ -98,8 +97,8 @@ github.com/spiegel-im-spiegel/gocli v0.10.1 h1:XWyq4dKFp2xTjiH2P2bxPZyi0++4IHp9H
github.com/spiegel-im-spiegel/gocli v0.10.1/go.mod h1:9vRvly2giutJ2sAtQjrw570p9ulJA3twgKlurmnj12g=
github.com/spiegel-im-spiegel/openbd-api v0.2.3 h1:3iV0TEQmznT8jxoYFlVM1ZUd1vhi3owUhvbrevB/FvM=
github.com/spiegel-im-spiegel/openbd-api v0.2.3/go.mod h1:M258g8imPwlFkoJR+wlfVVsMZJIKJlKx46Fzf4d2dr8=
github.com/spiegel-im-spiegel/pa-api v0.4.1 h1:OD58th423L37Bm5T+Sc7hi66RXJuLgpvH5TZuvCQRfY=
github.com/spiegel-im-spiegel/pa-api v0.4.1/go.mod h1:2ugBqfnaqLnBtKd/rDmOqOhFum5thuXwojf8Uh98h+k=
github.com/spiegel-im-spiegel/pa-api v0.5.0 h1:erwGRBgoSy24NdVE+DPi7P3mViGz9Tz4TKkPkP+f3Ak=
github.com/spiegel-im-spiegel/pa-api v0.5.0/go.mod h1:2ugBqfnaqLnBtKd/rDmOqOhFum5thuXwojf8Uh98h+k=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
Expand Down

0 comments on commit b80d83b

Please sign in to comment.