Allow lowercase when searching for report IDs
This commit is contained in:
parent
f301feb537
commit
c6fefc5cb0
1 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ package rmo
|
|||
import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
//"github.com/Gleipnir-Technology/nidus-sync/config"
|
||||
"github.com/Gleipnir-Technology/nidus-sync/db"
|
||||
|
|
@ -26,7 +27,7 @@ func getReportSuggestion(w http.ResponseWriter, r *http.Request) {
|
|||
respondError(w, "You need at least a bit of an 'r'", nil, http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
p := partial_report_id + "%"
|
||||
p := strings.ToUpper(partial_report_id) + "%"
|
||||
ctx := r.Context()
|
||||
rows, err := sql.PublicreportPublicIDSuggestion(p).All(ctx, db.PGInstance.BobDB)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue