0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 00:40:30 -05:00

Allow check for pgobject type.

This commit is contained in:
Andrey Antukh 2021-06-09 16:56:49 +02:00 committed by Alonso Torres
parent beaa62c9a9
commit 4c4dac8e90

View file

@ -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]