Skip to content

Commit

Permalink
fix blacklisted falseish values
Browse files Browse the repository at this point in the history
  • Loading branch information
ginesdt committed Oct 29, 2024
1 parent 60ff1dd commit b990194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streamtide/server/db.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@
(let [bl (:user/blacklisted (<! (db-get {:select [:user/blacklisted]
:from [:st-user]
:where [:= :user/address address]})))]
(not (or (nil? bl) (zero? bl))))))
(not (or (nil? bl) (zero? bl) (false? bl))))))

(defn add-to-blacklist! [{:keys [:user/address]}]
(db-run! {:update :st-user
Expand Down

0 comments on commit b990194

Please sign in to comment.