mirror of
https://github.com/plankanban/planka.git
synced 2025-07-20 05:39:43 +02:00
parent
8578883fac
commit
21504c06a6
18 changed files with 219 additions and 301 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue