Skip to content

Commit

Permalink
packages/api: fix dropped errors (#2145)
Browse files Browse the repository at this point in the history
  • Loading branch information
alrs authored Mar 14, 2024
1 parent 81dbb47 commit 7e098f2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/api/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ func getListWhereHandler(w http.ResponseWriter, r *http.Request) {

if len(form.InWhere) > 0 {
inWhere, _, err := template.ParseObject([]rune(form.InWhere))
if err != nil {
errorResponse(w, err)
return
}
switch v := inWhere.(type) {
case string:
if len(v) == 0 {
Expand Down Expand Up @@ -253,6 +257,10 @@ func getsumWhereHandler(w http.ResponseWriter, r *http.Request) {

if len(form.Where) > 0 {
inWhere, _, err := template.ParseObject([]rune(form.Where))
if err != nil {
errorResponse(w, err)
return
}
switch v := inWhere.(type) {
case string:
if len(v) == 0 {
Expand Down

0 comments on commit 7e098f2

Please sign in to comment.