mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 23:49:45 -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))))
|
(exec! ds (sql/select table params opts))))
|
||||||
|
|
||||||
(defn pgobject?
|
(defn pgobject?
|
||||||
[v]
|
([v]
|
||||||
(instance? PGobject v))
|
(instance? PGobject v))
|
||||||
|
([v type]
|
||||||
|
(and (instance? PGobject v)
|
||||||
|
(= type (.getType ^PGobject v)))))
|
||||||
|
|
||||||
(defn pginterval?
|
(defn pginterval?
|
||||||
[v]
|
[v]
|
||||||
|
|
Loading…
Add table
Reference in a new issue