From 5f85dc757cd1fae70219fb4254e032ecab071b0d Mon Sep 17 00:00:00 2001 From: Phil Winder Date: Fri, 23 Sep 2016 13:30:37 +0100 Subject: [PATCH] Fixed Service API when merging into master. --- api/middlewares.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/middlewares.go b/api/middlewares.go index 20cda665..fb1e8353 100644 --- a/api/middlewares.go +++ b/api/middlewares.go @@ -172,13 +172,13 @@ func (s *instrumentingService) Login(username, password string) (users.User, err return s.Service.Login(username, password) } -func (s *instrumentingService) Register(username, password, email string) (string, error) { +func (s *instrumentingService) Register(username, password, email, first, last string) (string, error) { defer func(begin time.Time) { s.requestCount.With("method", "register").Add(1) s.requestLatency.With("method", "register").Observe(time.Since(begin).Seconds()) }(time.Now()) - return s.Service.Register(username, password, email) + return s.Service.Register(username, password, email, first, last) } func (s *instrumentingService) PostUser(user users.User) (string, error) {