mirror of
https://github.com/wekan/wekan.git
synced 2026-02-06 00:21:48 +01:00
Add Features: allowing lists to be sorted by modifiedAt when not in draggable mode
This commit is contained in:
parent
e60926f847
commit
77f8b76d4e
7 changed files with 63 additions and 39 deletions
|
|
@ -1695,6 +1695,23 @@ if (Meteor.isServer) {
|
|||
const oldvalue = doc[action] || '';
|
||||
const activityType = `a-${action}`;
|
||||
const card = Cards.findOne(doc._id);
|
||||
const list = card.list();
|
||||
if (list) {
|
||||
// change list modifiedAt
|
||||
const modifiedAt = new Date();
|
||||
const boardId = list.boardId;
|
||||
Lists.direct.update(
|
||||
{
|
||||
_id: list._id,
|
||||
},
|
||||
{
|
||||
$set: {
|
||||
modifiedAt,
|
||||
boardId,
|
||||
},
|
||||
},
|
||||
);
|
||||
}
|
||||
const username = Users.findOne(userId).username;
|
||||
const activity = {
|
||||
userId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue