Skip to content

Commit

Permalink
fix: send -find when compound string is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
amanbolat committed Jan 16, 2020
1 parent 45ff67d commit 71eb475
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fmquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,12 @@ func (q *FMQuery) QueryString() string {
return startString +
withAmp(q.recordIdString()) + "-find"
}
if q.compoundQueryString() == "" || q.compoundFieldsString() == "" {
return startString +
withAmp(q.sortFieldsString()) +
withAmp(q.maxSkipString()) +
"-find"
}
return startString +
withAmp(q.sortFieldsString()) +
withAmp(q.maxSkipString()) +
Expand Down

0 comments on commit 71eb475

Please sign in to comment.