From 70ca68a6ecd44af60049b59799cdcb8ad4087cb0 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Wed, 13 Sep 2023 09:43:56 -0700 Subject: [PATCH] added background context todo --- backend/pkg/web/handler/source.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/pkg/web/handler/source.go b/backend/pkg/web/handler/source.go index 5aad6047..6c60350a 100644 --- a/backend/pkg/web/handler/source.go +++ b/backend/pkg/web/handler/source.go @@ -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)) }