refactor(api): make database error handler unexported

This commit is contained in:
2025-01-06 20:19:37 +03:00
parent 55986bab36
commit cb14672113
2 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"github.com/jackc/pgx/v5/pgconn"
)
func HandleDBError(err error) (int, string) {
func handleDBError(err error) (int, string) {
pgErr, ok := err.(*pgconn.PgError)
if !ok {
return 500, err.Error()