1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-28 23:20:10 +02:00

сделал GetOffsetFromGroupID()

This commit is contained in:
Nikitin Aleksandr
2024-11-13 16:22:31 +03:00
parent 600acdd98f
commit c4b6ad02de

View File

@@ -111,7 +111,8 @@ func Connect_WithApplicationName_err(ApplicationName string) error {
Conn, err = pgx.ConnectConfig(ctx, config) Conn, err = pgx.ConnectConfig(ctx, config)
if err != nil { if err != nil {
log.Panicln("Unable to connect to database host: ", Settings.DB_HOST, " Error: ", err) err = fmt.Errorf("ConnectConfig() error: %w", err)
//log.Panicln("Unable to connect to database host: ", Settings.DB_HOST, " Error: ", err)
} }
if err == nil { if err == nil {