From e8584b80e9638856cda0384f23a3293c2ae14d9e Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Fri, 23 Jan 2026 18:23:53 +0100 Subject: feat(db): set context --- common/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/context.go') 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 { -- cgit v1.2.3