Add Feature: allow user to sort Lists in Board by his own preference, boardadmin can star list

This commit is contained in:
Sam X. Chen 2019-10-18 16:44:09 -04:00
parent 2737d6b23f
commit bc2a20f04e
15 changed files with 272 additions and 14 deletions

View file

@ -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(
{