     (log/infof "sending layers for %s to %s" document-id client-id)
     (send-fn client-id [:frontend/db-entities
                         {:document/id document-id
-                         :entities (map layer/read-api (layer/find-by-document (:db req) {:db/id document-id}))
+                         :entities (map layer-model/read-api (layer-model/find-by-document (:db req) {:db/id document-id}))
                          :entity-type :layer}])
 
     (log/infof "sending custs for %s to %s" document-id client-id)

            [pc.email :as email]
            [pc.http.datomic2 :as datomic2]
            [pc.http.datomic.common :as datomic-common]
            [pc.models.access-grant :as access-grant-model]
            [pc.models.access-request :as access-request-model]
            [pc.models.chat :as chat]
            [pc.models.cust :as cust]
            [pc.models.doc :as doc-model]
            [pc.models.layer :as layer]
            [pc.models.permission :as permission-model]
            [pc.models.team :as team-model]
            [pc.replay :as replay]
            [pc.rollbar :as rollbar]
            [pc.utils :as utils]
            [slingshot.slingshot :refer (try+ throw+)]
            [taoensso.sente :as sente]

(ns pc.http.sente
  (:require [clj-http.client :as http]
            [clj-statsd :as statsd]
            [clj-time.core :as time]
            [clojure.core.async :as async]
            [clojure.core.memoize :as memo]
