v3: fix todo scoring and try to fix production testing problem

This commit is contained in:
Matteo Pagliazzi
2016-05-12 21:29:53 +02:00
parent ca6dca5fd0
commit f1f18859de
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ let mongooseOptions = !IS_PROD ? {} : {
replset: { socketOptions: { keepAlive: 1, connectTimeoutMS: 30000 } },
server: { socketOptions: { keepAlive: 1, connectTimeoutMS: 30000 } },
};
let db = mongoose.connect(nconf.get('NODE_DB_URI'), mongooseOptions, (err) => {
let db = mongoose.connect(nconf.get('NODE_DB_URI'), {}, (err) => {
if (err) throw err;
logger.info('Connected with Mongoose.');
});
@@ -30,7 +30,7 @@
span.task-checker.action-yesno(ng-if='::task.type=="daily" || task.type=="todo"')
input.task-input.visuallyhidden.focusable(id='box-{{::obj._id}}_{{::task._id}}', type='checkbox',
ng-model='task.completed', ng-if='$state.includes("tasks")',
ng-change='task.type=="todo" && pushTask(task,$index,"bottom"); changeCheck(task)'
ng-change='changeCheck(task)'
ui-keypress='{13:"task.completed = !task.completed; changeCheck(task)"}' )
input.visuallyhidden.focusable(id='box-{{::obj._id}}_{{::task._id}}', type='checkbox',
ng-if='!$state.includes("tasks")')