added background context todo
This commit is contained in:
parent
df8890c794
commit
70ca68a6ec
|
@ -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))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue