From e35a046c7aabcd2bd3501fcbf2a53483dd23f439 Mon Sep 17 00:00:00 2001 From: Jason Song Date: Wed, 4 Jan 2023 20:36:09 +0800 Subject: [PATCH] Update services/auth/basic.go Co-authored-by: delvh --- services/auth/basic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/auth/basic.go b/services/auth/basic.go index 126d592de2..20956ea073 100644 --- a/services/auth/basic.go +++ b/services/auth/basic.go @@ -109,7 +109,7 @@ func (b *Basic) Verify(req *http.Request, w http.ResponseWriter, store DataStore } // check task token - task, err := actions_model.GetRunningTaskByToken(db.DefaultContext, authToken) + task, err := actions_model.GetRunningTaskByToken(req.Context(), authToken) if err == nil && task != nil { log.Trace("Basic Authorization: Valid AccessToken for task[%d]", task.ID)