summaryrefslogtreecommitdiffstats
path: root/models/cards.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/cards.js')
-rw-r--r--models/cards.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/models/cards.js b/models/cards.js
index 35d596d6..27dda0ee 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -1696,9 +1696,11 @@ if (Meteor.isServer) {
const activityType = `a-${action}`;
const card = Cards.findOne(doc._id);
const list = card.list();
- if (list) {
+ if (list && action === 'endAt') {
// change list modifiedAt
- const modifiedAt = new Date();
+ const modifiedAt = new Date(
+ new Date(value).getTime() - 365 * 24 * 3600 * 1e3,
+ ); // set it as 1 year before
const boardId = list.boardId;
Lists.direct.update(
{