Update services/auth/basic.go

Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
Jason Song 2023-01-04 20:36:09 +08:00 committed by GitHub
parent 0d2945fe4d
commit e35a046c7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)