mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-31 20:29:55 +02:00
UBERF-7959: Fix async issues (#6409)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -499,7 +499,7 @@ export class ReviewThreadSyncManager implements DocSyncManager {
|
||||
): Promise<void> {
|
||||
if (kind === 'externalVersion') {
|
||||
// No need to perform external sync for review threads, so let's update marks
|
||||
const tx = derivedClient.apply('review_threads_github')
|
||||
const tx = derivedClient.apply('review_threads_github' + prj._id)
|
||||
for (const d of syncDocs) {
|
||||
await tx.update(d, { externalVersion: githubExternalSyncVersion })
|
||||
}
|
||||
@@ -545,7 +545,7 @@ export class ReviewThreadSyncManager implements DocSyncManager {
|
||||
{ reviewThreadId: ext.id }
|
||||
)
|
||||
}
|
||||
const tx = derivedClient.apply('reviewThread_github')
|
||||
const tx = derivedClient.apply('reviewThread_github' + prj._id)
|
||||
for (const d of syncDocs) {
|
||||
await tx.update(d, { derivedVersion: githubDerivedSyncVersion })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user