mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 21:17:18 -04:00
Fix: List last modify time will be affected by cards dueAt, endAt
This commit is contained in:
parent
b26504f414
commit
3308d90a3a
1 changed files with 2 additions and 3 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue