v3: fix todo scoring and try to fix production testing problem
This commit is contained in:
@@ -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")')
|
||||
|
||||
Reference in New Issue
Block a user