diff options
| -rw-r--r-- | common/context.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/context.go b/common/context.go index 065a994..740e727 100644 --- a/common/context.go +++ b/common/context.go @@ -24,7 +24,7 @@ func GetDB(ctx context.Context) *gorm.DB { if raw == nil { return nil } - return raw.(*gorm.DB) + return raw.(*gorm.DB).WithContext(ctx) } func SetDebug(ctx context.Context, b bool) context.Context { |
