mirror of
https://github.com/plankanban/planka.git
synced 2025-12-23 09:15:09 +03:00
Update dependencies
This commit is contained in:
@@ -2,7 +2,7 @@ import socket from './socket';
|
||||
|
||||
/* Transformers */
|
||||
|
||||
export const transformAction = action => ({
|
||||
export const transformAction = (action) => ({
|
||||
...action,
|
||||
createdAt: new Date(action.createdAt),
|
||||
});
|
||||
@@ -10,14 +10,14 @@ export const transformAction = action => ({
|
||||
/* Actions */
|
||||
|
||||
const getActions = (cardId, data, headers) =>
|
||||
socket.get(`/cards/${cardId}/actions`, data, headers).then(body => ({
|
||||
socket.get(`/cards/${cardId}/actions`, data, headers).then((body) => ({
|
||||
...body,
|
||||
items: body.items.map(transformAction),
|
||||
}));
|
||||
|
||||
/* Event handlers */
|
||||
|
||||
const makeHandleActionCreate = next => body => {
|
||||
const makeHandleActionCreate = (next) => (body) => {
|
||||
next({
|
||||
...body,
|
||||
item: transformAction(body.item),
|
||||
|
||||
Reference in New Issue
Block a user