diff --git a/controllers/story.js b/controllers/story.js index d6d097ec5e..f317bef7b0 100755 --- a/controllers/story.js +++ b/controllers/story.js @@ -373,6 +373,12 @@ exports.storySubmission = function(req, res, next) { if (err) { return res.status(500); } + req.user.progressTimestamps.push(Date.now() || 0); + req.user.save(function (err, user) { + if (err) { + return next(err); + } + }); res.send(JSON.stringify({ storyLink: story.storyLink.replace(/\s/g, '-').toLowerCase() })); diff --git a/public/js/lib/stories/stories.js b/public/js/lib/stories/stories.js deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/views/stories/index.jade b/views/stories/index.jade index 588f453f78..899a740b4e 100644 --- a/views/stories/index.jade +++ b/views/stories/index.jade @@ -1,6 +1,5 @@ extends ../layout block content - script(src='/js/lib/moment/moment.js') if (user) script. var isLoggedIn = true;