Fix grpc endpoint parameter permutation (#1370)
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
This commit is contained in:
parent
7ba3fdb3bf
commit
9e532d2a72
|
@ -44,7 +44,7 @@ func isChannelOwnerEndpoint(svc things.Service) endpoint.Endpoint {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
err := svc.IsChannelOwner(ctx, req.chanID, req.owner)
|
||||
err := svc.IsChannelOwner(ctx, req.owner, req.chanID)
|
||||
return emptyRes{err: err}, err
|
||||
}
|
||||
}
|
||||
|
|
|
@ -190,7 +190,7 @@ func (ms *metricsMiddleware) IsChannelOwner(ctx context.Context, owner, chanID s
|
|||
ms.latency.With("method", "is_channel_owner").Observe(time.Since(begin).Seconds())
|
||||
}(time.Now())
|
||||
|
||||
return ms.svc.CanAccessByID(ctx, owner, chanID)
|
||||
return ms.svc.IsChannelOwner(ctx, owner, chanID)
|
||||
}
|
||||
|
||||
func (ms *metricsMiddleware) Identify(ctx context.Context, key string) (string, error) {
|
||||
|
|
Loading…
Reference in New Issue