1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-27 00:59:44 +02:00

fix: Rename timer to stopwatch

Closes #392
This commit is contained in:
Maksim Eltyshev 2023-02-27 19:09:51 +01:00
parent d627a5660a
commit 22ec8707ac
35 changed files with 179 additions and 161 deletions

View file

@ -8,11 +8,11 @@ export const transformCard = (card) => ({
...(card.dueDate && {
dueDate: new Date(card.dueDate),
}),
...(card.timer && {
timer: {
...card.timer,
...(card.timer.startedAt && {
startedAt: new Date(card.timer.startedAt),
...(card.stopwatch && {
stopwatch: {
...card.stopwatch,
...(card.stopwatch.startedAt && {
startedAt: new Date(card.stopwatch.startedAt),
}),
},
}),
@ -23,11 +23,11 @@ export const transformCardData = (data) => ({
...(data.dueDate && {
dueDate: data.dueDate.toISOString(),
}),
...(data.timer && {
timer: {
...data.timer,
...(data.timer.startedAt && {
startedAt: data.timer.startedAt.toISOString(),
...(data.stopwatch && {
stopwatch: {
...data.stopwatch,
...(data.stopwatch.startedAt && {
startedAt: data.stopwatch.startedAt.toISOString(),
}),
},
}),