                                                     (= (-> % :assignee :user-id) (-> % :author :user-id)))))
                                     (:assignee %))
                             follow-ups))
-        updated-bookmarks (clojure.set/union (set (map :user-id new-bookmarks)) (:bookmarks e))
+        updated-bookmarks (vec (clojure.set/union (set (map :user-id new-bookmarks)) (:bookmarks e)))
         updated-follow-ups (when complete-follow-ups?
                              (mapv #(if (and (not (:completed? %))
                                                (or (not self-only?)

      (try
        (create-temp-index conn)
        (let [orgs (org/list-orgs conn)]
          (doseq [o orgs]
            (let [entries (entries-for-org conn (:uuid o))]
              (println "Org:" (:uuid o) "-" (:name o))
              (doseq [e entries]
                (migrate-follow-ups-for-entry conn e
                 (:self-only options)                 ; Only self created follow-ups
                 (not (:force-update options))        ; Make changes in DB, no dry-run
                 (and (:force-update options)         ; Complete the relative follow-up,
                      (:complete-follow-ups options)) ; use this to keep them to re-run the import
                 )))))
        (delete-temp-index conn)
        (exit 0 "\n")


  To actually update the entries:

  lein run -m oc.storage.util.migrate-bookmarks -f

  Use -c/--complete-follow-ups to mark follow-up as completed when creating the bookmark.

  Use -s/--self-only to create bookmarks only for self created follow-ups."

