mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
Fix bitrix gmail sync (#2918)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
cab96e795d
commit
4b091fa868
@ -244,7 +244,7 @@ export async function syncDocument (
|
|||||||
valValue.attachedTo = id
|
valValue.attachedTo = id
|
||||||
} else {
|
} else {
|
||||||
// Update document id, for existing document.
|
// Update document id, for existing document.
|
||||||
valValue.attachedTo = resultDoc.document._id
|
valValue.attachedTo = attachedTo
|
||||||
}
|
}
|
||||||
const existingIdx = existingByClass.findIndex((it) => {
|
const existingIdx = existingByClass.findIndex((it) => {
|
||||||
const bdoc = hierarchy.as<Doc, BitrixSyncDoc>(it, bitrix.mixin.BitrixSyncDoc)
|
const bdoc = hierarchy.as<Doc, BitrixSyncDoc>(it, bitrix.mixin.BitrixSyncDoc)
|
||||||
|
Loading…
Reference in New Issue
Block a user