diff options
author | Sam X. Chen <sam.xi.chen@gmail.com> | 2019-10-30 12:26:39 -0400 |
---|---|---|
committer | Sam X. Chen <sam.xi.chen@gmail.com> | 2019-10-30 12:26:39 -0400 |
commit | 3308d90a3a6a1ddeed33966767937cd2c2c90cb5 (patch) | |
tree | fa2fdb5fc94beb7d22db9bbd8795429a62cfc717 /models/cards.js | |
parent | b26504f4145e1968f18389982210f60c1f1fa725 (diff) | |
download | wekan-3308d90a3a6a1ddeed33966767937cd2c2c90cb5.tar.gz wekan-3308d90a3a6a1ddeed33966767937cd2c2c90cb5.tar.bz2 wekan-3308d90a3a6a1ddeed33966767937cd2c2c90cb5.zip |
Fix: List last modify time will be affected by cards dueAt, endAt
Diffstat (limited to 'models/cards.js')
-rw-r--r-- | models/cards.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/models/cards.js b/models/cards.js index a43402bb..1c56a6d2 100644 --- a/models/cards.js +++ b/models/cards.js @@ -1699,9 +1699,8 @@ if (Meteor.isServer) { if (list) { // change list modifiedAt, when user modified the key values in timingaction array, if it's endAt, put the modifiedAt of list back to one year ago for sorting purpose const modifiedAt = new Date( - new Date(value).getTime() - (action === 'endAt') - ? 365 * 24 * 3600 * 1e3 - : 0, + new Date(value).getTime() - + (action === 'endAt' ? 365 * 24 * 3600 * 1e3 : 0), ); // set it as 1 year before const boardId = list.boardId; Lists.direct.update( |