1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-20 05:39:43 +02:00

fix: Use creation timestamp instead of id for ordering

Closes #465
This commit is contained in:
Maksim Eltyshev 2023-06-13 00:19:17 +02:00
parent 8578883fac
commit 21504c06a6
18 changed files with 219 additions and 301 deletions

View file

@ -1,4 +1,5 @@
import socket from './socket';
import { transformUser } from './users';
/* Transformers */
@ -13,6 +14,10 @@ const getActivities = (cardId, data, headers) =>
socket.get(`/cards/${cardId}/actions`, data, headers).then((body) => ({
...body,
items: body.items.map(transformActivity),
included: {
...body.included,
users: body.included.users.map(transformUser),
},
}));
/* Event handlers */