summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Cheng-Han2016-10-15 13:54:16 +0800
committerWu Cheng-Han2016-10-15 13:54:16 +0800
commit1e6de0b90e48517c7a7f3293127e6254281b6c77 (patch)
tree0a38fc75d909320ee32e49e988e56b58ef393345
parentdbd7449740a5c9b9fc51fb92c0f7614e180b8063 (diff)
Change revision saving policy period
Diffstat (limited to '')
-rw-r--r--lib/models/revision.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/models/revision.js b/lib/models/revision.js
index b497f0ed..33fdd73c 100644
--- a/lib/models/revision.js
+++ b/lib/models/revision.js
@@ -208,10 +208,10 @@ module.exports = function (sequelize, DataTypes) {
if (note.lastchangeAt && note.savedAt) {
var lastchangeAt = moment(note.lastchangeAt);
var savedAt = moment(note.savedAt);
- if (moment().isAfter(lastchangeAt.add(1, 'minutes'))) {
+ if (moment().isAfter(lastchangeAt.add(5, 'minutes'))) {
savedNotes.push(note);
Revision.saveNoteRevision(note, _callback);
- } else if (lastchangeAt.isAfter(savedAt.add(2, 'minutes'))) {
+ } else if (lastchangeAt.isAfter(savedAt.add(10, 'minutes'))) {
savedNotes.push(note);
Revision.saveNoteRevision(note, _callback);
} else {