mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-01 14:05:05 +02:00
UBERF-4354 (#4066)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -545,11 +545,16 @@
|
||||
if (originDueDate !== event.dueDate) update.dueDate = event.dueDate
|
||||
if (Object.keys(update).length > 0) {
|
||||
if (event._class === calendar.class.ReccuringInstance) {
|
||||
await updateReccuringInstance(update, {
|
||||
const updated = await updateReccuringInstance(update, {
|
||||
...event,
|
||||
date: originDate,
|
||||
dueDate: originDueDate
|
||||
} as unknown as ReccuringInstance)
|
||||
if (!updated) {
|
||||
event.date = originDate
|
||||
event.dueDate = originDueDate
|
||||
events = events
|
||||
}
|
||||
} else {
|
||||
await client.update(event, update)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user