                 :answer/ts (:ts answer)
                 :question/_answers (:question-id answer)})]
       @(d/transact db-conn tx)
-      (log/infof "Successfully Submitted % answers to %s for %s" (count answers) domain user))
+      (log/infof "Successfully Submitted %s answers to %s for %s" (count answers) domain user))
     (catch Exception e
       (log/errorf e "Failed to submit answers %s for domain %s and user %s"
                   (pr-str answers) domain user)

     :team/members (for [[name email] members]
                     {:member/name name
                      :member/email email})
     :team/questions (for [text questions]
                       {:question/text text})})

  (def every-minute "0 * * * * ?")

  (d/transact db-conn [(create-team "teamweek-org" slack-token every-minute
                                    [#_["jonas" "jonas@gmail"]
                                     ["ivan" "ivan@gmail"]]
                                    ["How are you today?"
                                     "What are your plans for tomorrow?"])])

  (d/transact db-conn [[:db.fn/retractEntity [:team/domain "teamweek-org"]]])





  (def db-conn (d/connect db-uri))

  (d/q '[:find ?answer ;(pull ?answer [:answer/author :answer/text :answer/ts])
         :where
         [?answer :answer/text]]
       (d/db db-conn))


  @(d/transact db-conn (read-string (slurp "../webapp/resources/schema.edn")))

  (future (listen-for-team-updates nil db-conn))

