diff --git a/backend/src/app/db.clj b/backend/src/app/db.clj index e11e5b8bc..e1455e719 100644 --- a/backend/src/app/db.clj +++ b/backend/src/app/db.clj @@ -252,8 +252,11 @@ (exec! ds (sql/select table params opts)))) (defn pgobject? - [v] - (instance? PGobject v)) + ([v] + (instance? PGobject v)) + ([v type] + (and (instance? PGobject v) + (= type (.getType ^PGobject v))))) (defn pginterval? [v]