diff --git a/app/controllers/timeclock.js b/app/controllers/timeclock.js index 46685f8..a753218 100644 --- a/app/controllers/timeclock.js +++ b/app/controllers/timeclock.js @@ -424,6 +424,7 @@ function handleClockOutRequest(params, user, spans, workorders, now) { span.status = 'closed'; span.end = now.clone().utc().toDate(); span.duration = moment(span.end).diff(span.start, 'seconds'); + span.notes = params.notes; return span.save().then(spanToResponse); } @@ -491,6 +492,7 @@ function errorHandler(res) { } }); } else { + console.error(error); console.error(error.stack); res.json(500, 'Internal error'); } diff --git a/config/config.js b/config/config.js index 5e05563..1aba7ab 100644 --- a/config/config.js +++ b/config/config.js @@ -15,8 +15,8 @@ module.exports = { user: 'api@atlanticbiomedical.com', password: 'success4', - partsRequest: 'akirayasha@gmail.com', - exception: 'akirayasha@gmail.com' + partsRequest: 'parts@atlanticbiomedical.com', + exception: 'hr@atlanticbiomedical.com' }, mysql: { host: 'localhost', diff --git a/start_this_bitch.sh b/start_this_bitch.sh index 66acee0..6359049 100755 --- a/start_this_bitch.sh +++ b/start_this_bitch.sh @@ -1,3 +1,3 @@ #!/bin/sh -NODE_ENV='prod' node/bin/node launcher.js >> server.log +NODE_ENV='prod' node launcher.js >> server.log