diff --git a/backend/src/app/db.clj b/backend/src/app/db.clj index e1455e719..6e2e086bb 100644 --- a/backend/src/app/db.clj +++ b/backend/src/app/db.clj @@ -349,6 +349,12 @@ (.setType "inet") (.setValue (str ip-addr)))) +(defn decode-inet + [^PGobject o] + (if (= "inet" (.getType o)) + (.getValue o) + nil)) + (defn tjson "Encode as transit json." [data]