TP-87883 | fix cybertron pipeline

This commit is contained in:
varnit goyal
2024-10-25 13:03:22 +05:30
parent 8409ab6a47
commit 81f4ae42d4

View File

@@ -3,7 +3,6 @@ package db
import (
"cybertron/configs"
"cybertron/pkg/log"
"os"
"time"
"go.uber.org/zap"
@@ -18,7 +17,6 @@ func NewDBClient() *gorm.DB {
db, err := gorm.Open(postgres.Open(postgresConfig.GetPostgresDsn()), &gorm.Config{})
if err != nil {
logger.Error("database connection failed", zap.Error(err))
os.Exit(1)
}
sqlDB, err := db.DB()
if err != nil {