 (defn get-invitee
   [request]
   (let [code (:code (:route-params request))
-        data (db/get-invitee (Integer/parseInt code))]
+        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)


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


(defn update-additional-invitees
  [request]
  (let [code (Long/parseLong (:code (:route-params request)))
        keywordized-request-body (clj-walk/keywordize-keys (:body request))
        resp (db/update-additional-invitees code (:additional_invitees keywordized-request-body))]
    (if (= resp "AWS_ERROR")
