             [immutant.messaging :as msg]
             [environ.core :refer [env]]
             [mdr2.queues :as queues]
-            [mdr2.production :as production]
+            [mdr2.production :as prod]
             [mdr2.abacus.validation :as validation]))
 
 (def ^:private root-path [:Task :Transaction :DocumentData])

        ;; to the db?
        (create-row 252 produced_date) ; Date of production end
        (create-row 274 date) ; Date of production start
        (create-row 4 (production/dam-number production))] ; for legacy purposes
       (remove nil?) ; remove empty rows
       wrap-rows ; wrap the payload
       (map-indexed #(conj %2 %1)) ; number each row


(defn import-status-request [f]
  (let [{product_number :product_number} (read-file f)
        production (prod/find-by-productnumber product_number)]
    (msg/publish queues/notify-abacus-queue production)
    f))

