Don't attempt to add a places visit list of (nil).

This commit is contained in:
Richard Newman 2016-08-17 09:46:05 -07:00
parent 2bdf60c8ea
commit 2f324cfe17

View file

@ -59,7 +59,8 @@
required {:db/id (db/id-literal :db.part/user) required {:db/id (db/id-literal :db.part/user)
:page/url (:url (first rows)) :page/url (:url (first rows))
:page/guid (:guid (first rows))} :page/guid (:guid (first rows))}
visits (map :visit_date rows)] visits (keep :visit_date rows)]
(assoc-if required (assoc-if required
:page/title title :page/title title
:page/visitAt visits))) :page/visitAt visits)))