added background context todo

This commit is contained in:
Jason Kulatunga 2023-09-13 09:43:56 -07:00
parent df8890c794
commit 70ca68a6ec
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -346,5 +346,6 @@ func SyncSourceResources(c context.Context, logger *logrus.Entry, databaseRepo d
// //
func GetBackgroundContext(ginContext *gin.Context) context.Context { 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)) return context.WithValue(ginContext.Request.Context(), pkg.ContextKeyTypeAuthUsername, ginContext.Value(pkg.ContextKeyTypeAuthUsername).(string))
} }