 
 (defn update-details
   [request]
-  (let [code (Integer/parseInt (:code (:route-params request)))
+  (let [code (Long/parseLong (:code (:route-params request)))
         keywordized-req-body (clj-walk/keywordize-keys (:body request))
         resp (db/update-invitee-details code keywordized-req-body)]
     (if (= resp "AWS_ERROR")

  [request]
  (let [query (:query (:params request))
        keywordized-req-body (clj-walk/keywordize-keys (:body request))
        code (Integer/parseInt (:code keywordized-req-body))
        updated-req-body (assoc keywordized-req-body :code code)
        resp (db/create-invitee updated-req-body)]
    (if (= resp "AWS_ERROR")

(defn get-invitee
  [request]
  (let [code (:code (:route-params request))
        data (db/get-invitee (Long/parseLong code))]
    (cond
      (nil? data) (res/status (res/response {:status "NOT_FOUND"}) 404)
      (= data "AWS_ERROR") (res/status (res/response {:status "AWS_ERROR"}) 500)
