From 0d1a1b491e77f302deef9b22306e2a49931e62fd Mon Sep 17 00:00:00 2001 From: Akshett Rai Jindal Date: Mon, 16 Oct 2023 20:19:40 +0530 Subject: [PATCH] [database] remove gorm config --- database/connect.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/database/connect.go b/database/connect.go index 79fe44f..25d13cd 100644 --- a/database/connect.go +++ b/database/connect.go @@ -29,9 +29,7 @@ func Connect() (*gorm.DB, error) { return nil, fmt.Errorf("Error: key 'type' not found in database config") } - gormConfig := gorm.Config{ - SkipDefaultTransaction: true, - } + gormConfig := gorm.Config{} switch dbType {