UBERF-7690: Performance fixes (#6336)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2024-08-15 17:30:25 +07:00
committed by GitHub
parent d502ba86d9
commit 87ded4d797
32 changed files with 200 additions and 103 deletions
@@ -21,10 +21,10 @@ import core, {
type Class,
type TxMixin
} from '@hcengineering/core'
import github, { DocSyncInfo, GithubProject } from '@hcengineering/github'
import { TriggerControl } from '@hcengineering/server-core'
import time, { ToDo } from '@hcengineering/time'
import tracker from '@hcengineering/tracker'
import github, { DocSyncInfo, GithubProject } from '@hcengineering/github'
/**
* @public
@@ -124,7 +124,7 @@ async function updateDocSyncInfo (
}
}
const [account] = await control.modelDb.findAll(contact.class.PersonAccount, {
const [account] = control.modelDb.findAllSync(contact.class.PersonAccount, {
_id: tx.modifiedBy as Ref<PersonAccount>
})
// Do not modify state if is modified by github service.