Try to fix API get cards wrong order. Please test.

Thanks to mohammadZahedian, xator91 and xet7.

Fixes #5319
This commit is contained in:
Lauri Ojansivu 2024-03-06 12:07:18 +02:00
parent 35ed465e10
commit c570405d02

View file

@ -3250,7 +3250,8 @@ if (Meteor.isServer) {
boardId: paramBoardId,
listId: paramListId,
archived: false,
}).map(function(doc) {
},
{ sort: ['sort'] }).map(function(doc) {
return {
_id: doc._id,
title: doc.title,
@ -3260,6 +3261,7 @@ if (Meteor.isServer) {
dueAt: doc.dueAt,
endAt: doc.endAt,
assignees: doc.assignees,
sort: doc.sort,
};
}),
});