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:
parent
beaa62c9a9
commit
4c4dac8e90
1 changed files with 5 additions and 2 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue