aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/packages/nuget/auth.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/packages/nuget/auth.go')
-rw-r--r--routers/api/packages/nuget/auth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/packages/nuget/auth.go b/routers/api/packages/nuget/auth.go
index 2be102a38b..890c930184 100644
--- a/routers/api/packages/nuget/auth.go
+++ b/routers/api/packages/nuget/auth.go
@@ -29,7 +29,7 @@ func (a *Auth) Verify(req *http.Request, w http.ResponseWriter, store auth.DataS
return nil
}
- u, err := user_model.GetUserByID(token.UID)
+ u, err := user_model.GetUserByID(req.Context(), token.UID)
if err != nil {
log.Error("GetUserByID: %v", err)
return nil