Skip to content

Commit

Permalink
added background context todo
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Sep 13, 2023
1 parent df8890c commit 70ca68a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/pkg/web/handler/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,5 +346,6 @@ func SyncSourceResources(c context.Context, logger *logrus.Entry, databaseRepo d
//

func GetBackgroundContext(ginContext *gin.Context) context.Context {
//TODO: this should be a background context
return context.WithValue(ginContext.Request.Context(), pkg.ContextKeyTypeAuthUsername, ginContext.Value(pkg.ContextKeyTypeAuthUsername).(string))
}

0 comments on commit 70ca68a

Please sign in to comment.