refactor(api): rename database error handler function

This commit is contained in:
2025-01-06 15:16:55 +03:00
parent adcc7d22c3
commit 82134a8cd2
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"github.com/jackc/pgx/v5/pgconn"
)
func HandlePgError(err error) (int, string) {
func HandleDBError(err error) (int, string) {
pgErr, ok := err.(*pgconn.PgError)
if !ok {
return 500, err.Error()