diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-01-23 18:23:53 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-01-23 18:23:53 +0100 |
| commit | e8584b80e9638856cda0384f23a3293c2ae14d9e (patch) | |
| tree | bdcf23e48a07cbe82541861513cd0da023f27d4f /common | |
| parent | 3e65b4f6281ddc4039a27a62428db8a95ffc3677 (diff) | |
feat(db): set context
Diffstat (limited to 'common')
| -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 { |
