fix(api): fix database error handler function

This commit is contained in:
Masahiko AMANO 2025-01-06 15:19:25 +03:00
parent 82134a8cd2
commit 14e88b2e2e

View File

@ -17,6 +17,6 @@ func HandleDBError(err error) (int, string) {
if err == nil {
return int(status), message
} else {
return 500, message
return 400, pgErr.Message
}
}