Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore/testing-prs #138

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ var User = mongoose.model('User');
var hms = require('humanize-ms');
var ms = require('ms');
var streamBuffers = require('stream-buffers');
shirlupo marked this conversation as resolved.
Show resolved Hide resolved
shirlupo marked this conversation as resolved.
Show resolved Hide resolved
shirlupo marked this conversation as resolved.
Show resolved Hide resolved
var readline = require('readline');
var moment = require('moment');
shirlupo marked this conversation as resolved.
Show resolved Hide resolved
var exec = require('child_process').exec;
shirlupo marked this conversation as resolved.
Show resolved Hide resolved
shirlupo marked this conversation as resolved.
Show resolved Hide resolved

shirlupo marked this conversation as resolved.
Show resolved Hide resolved

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new isuee on line 11

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new isuee on line 11

Expand Down Expand Up @@ -62,7 +61,7 @@ function parse(todo) {
time = time.replace(/\n$/, '');

shirlupo marked this conversation as resolved.
Show resolved Hide resolved
var period = hms(time);

var shir = "DoNotMerge";
shirlupo marked this conversation as resolved.
Show resolved Hide resolved
console.log('period: ' + period);

shirlupo marked this conversation as resolved.
Show resolved Hide resolved
shirlupo marked this conversation as resolved.
Show resolved Hide resolved
shirlupo marked this conversation as resolved.
Show resolved Hide resolved
// remove it
shirlupo marked this conversation as resolved.
Show resolved Hide resolved
shirlupo marked this conversation as resolved.
Show resolved Hide resolved

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new isuee on line 67

Expand Down Expand Up @@ -140,18 +139,7 @@ exports.edit = function(req, res, next) {
});
};

exports.update = function(req, res, next) {
Todo.findById(req.params.id, function (err, todo) {

todo.content = req.body.content;
todo.updated_at = Date.now();
todo.save(function (err, todo, count) {
if(err) return next(err);

res.redirect('/');
});
});
};

shirlupo marked this conversation as resolved.
Show resolved Hide resolved
// ** express turns the cookie key to lowercase **
exports.current_user = function (req, res, next) {
Comment on lines 144 to 145

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new isuee on line 144-145

Comment on lines 144 to 145

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new isuee on line 144-145

Expand Down