diff options
author | Griffin Smith <grfn@gws.fyi> | 2021-12-14T03·05-0500 |
---|---|---|
committer | Griffin Smith <grfn@gws.fyi> | 2021-12-14T03·05-0500 |
commit | e7899e6c0bcdadce79b794f2082c1e768f738f33 (patch) | |
tree | de0827709e6269850a3ac2e82c2fdd09ad475f81 /users | |
parent | 8bc2e832464cd0135d2e871f3131b69940ecf33b (diff) |
fix(grfn/bbbg): Handle attended=NULL in typeahead r/3235
Change-Id: I000f115298dc8d3c18b5c0a6581e5423aa6892e7
Diffstat (limited to 'users')
-rw-r--r-- | users/grfn/bbbg/src/bbbg/handlers/attendees.clj | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/users/grfn/bbbg/src/bbbg/handlers/attendees.clj b/users/grfn/bbbg/src/bbbg/handlers/attendees.clj index 00a8a5908046..ccff28c00151 100644 --- a/users/grfn/bbbg/src/bbbg/handlers/attendees.clj +++ b/users/grfn/bbbg/src/bbbg/handlers/attendees.clj @@ -21,9 +21,11 @@ (db.attendee/search q) {:select [:attendee.*] :from [:attendee]}) event_id (db.attendee/for-event event_id) - (some? attended) (merge-where [:= :attended (case attended - "true" true - "false" false)])))] + (some? attended) + (merge-where + (case attended + "true" :attended + "false" [:or [:= :attended nil] [:not :attended]]))))] (-> {:results results} json/generate-string response |