diff --git a/backend/db/db.go b/backend/db/db.go index a535b7f..722947f 100644 --- a/backend/db/db.go +++ b/backend/db/db.go @@ -54,6 +54,7 @@ func transaction(handler func(context.Context, pgx.Tx) (statusCode int, err erro // Handle database error func handleDBError(errIn error) (statusCode int, err error) { if errIn == nil { + statusCode = http.StatusOK return } if errors.Is(errIn, pgx.ErrNoRows) {