aboutsummaryrefslogtreecommitdiff
path: root/src/handlers/rating.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-12-20 12:18:31 +0000
committerAkshay <[email protected]>2020-12-20 12:18:31 +0000
commit375fc45f310476a0a49fc48054f6563c8e02e2f6 (patch)
treec40bd576a8cc803051af234b9a30b0f3cb8f729e /src/handlers/rating.rs
parent8026ac574e6b8e1aeb868c970b780c72f655928b (diff)
fix cookies/cors, more logging
Diffstat (limited to 'src/handlers/rating.rs')
-rw-r--r--src/handlers/rating.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/handlers/rating.rs b/src/handlers/rating.rs
index 309c2c6..dfbeb3e 100644
--- a/src/handlers/rating.rs
+++ b/src/handlers/rating.rs
@@ -22,6 +22,7 @@ pub async fn add_rating(
22 pool: web::Data<TPool>, 22 pool: web::Data<TPool>,
23) -> impl Responder { 23) -> impl Responder {
24 info!("Add rating hit: {:?}", rating_details.product_id); 24 info!("Add rating hit: {:?}", rating_details.product_id);
25 info!("{:?}", cookie.identity());
25 let conn = pool.get().unwrap(); 26 let conn = pool.get().unwrap();
26 if let Some(uname) = cookie.identity() { 27 if let Some(uname) = cookie.identity() {
27 let selected_user = customer 28 let selected_user = customer