From f427905d66c6fda7c89a6349e4cb440446c7e6c0 Mon Sep 17 00:00:00 2001 From: Dakshina Scott Date: Thu, 16 Nov 2017 13:15:22 +0000 Subject: [PATCH] #10 dont need user id in front end --- public/draw.js | 1 - src/controllers/about.js | 1 - 2 files changed, 2 deletions(-) diff --git a/public/draw.js b/public/draw.js index 82f23f3..3125b41 100644 --- a/public/draw.js +++ b/public/draw.js @@ -20,7 +20,6 @@ var url = '/drawing'; var params = { svg: canvas.toSVG(), - userId: saveEl.dataset.userId, fieldName: 'likes_svg', }; xhr.onreadystatechange = function() { diff --git a/src/controllers/about.js b/src/controllers/about.js index daa46ef..a6891a2 100644 --- a/src/controllers/about.js +++ b/src/controllers/about.js @@ -11,7 +11,6 @@ exports.get = (req, res) => { logoutButton: true, progressPercentage: '60', data, - userId: req.session.id, }); }); };