@@ -36,7 +36,7 @@ func (s VendorService) Get(
|
||||
|
||||
err := s.svc.pg.WithConn(
|
||||
ctx,
|
||||
func(conn pg.Conn) error {
|
||||
func(ctx context.Context, conn pg.Querier) error {
|
||||
err := vendor.LoadByID(ctx, conn, s.svc.scope, vendorID)
|
||||
if err != nil {
|
||||
return fmt.Errorf("cannot load vendor: %w", err)
|
||||
@@ -62,7 +62,7 @@ func (s VendorService) ListForOrganizationId(
|
||||
|
||||
err := s.svc.pg.WithConn(
|
||||
ctx,
|
||||
func(conn pg.Conn) error {
|
||||
func(ctx context.Context, conn pg.Querier) error {
|
||||
showOnTrustCenter := true
|
||||
var nilSnapshotID *gid.GID = nil
|
||||
filter := coredata.NewVendorFilter(&nilSnapshotID, &showOnTrustCenter)
|
||||
@@ -91,7 +91,7 @@ func (s VendorService) CountForTrustCenterId(
|
||||
|
||||
err := s.svc.pg.WithConn(
|
||||
ctx,
|
||||
func(conn pg.Conn) (err error) {
|
||||
func(ctx context.Context, conn pg.Querier) (err error) {
|
||||
trustCenter, err := s.svc.TrustCenters.Get(ctx, trustCenterID)
|
||||
if err != nil {
|
||||
return fmt.Errorf("cannot load trust center: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user