mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-07 18:27:44 +02:00
QFIX: Empty comments in github (#9258)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -420,13 +420,14 @@ export class CommentSyncManager implements DocSyncManager {
|
||||
url: (result?.data.url ?? '').toLowerCase(),
|
||||
external: result?.data as CommentExternalData,
|
||||
current: result?.data,
|
||||
repository: repo._id
|
||||
repository: repo._id,
|
||||
needSync: githubSyncVersion
|
||||
}
|
||||
|
||||
// We need to update in current promise, to prevent event changes.
|
||||
await derivedClient.update(info, upd)
|
||||
}
|
||||
return {}
|
||||
return { needSync: githubSyncVersion }
|
||||
} catch (err: any) {
|
||||
Analytics.handleError(err)
|
||||
this.ctx.error(err)
|
||||
|
||||
@@ -1476,7 +1476,12 @@ export class GithubWorker implements IntegrationManager {
|
||||
'sync doc',
|
||||
{},
|
||||
(ctx) => mapper.sync(existing, info, parent, derivedClient),
|
||||
{ url: info.url.toLowerCase(), workspace: this.workspace.uuid, existing: existing !== undefined }
|
||||
{
|
||||
url: info.url.toLowerCase(),
|
||||
workspace: this.workspace.uuid,
|
||||
existing: existing !== undefined,
|
||||
objectClass: info.objectClass
|
||||
}
|
||||
)
|
||||
if (docUpdate !== undefined) {
|
||||
await derivedClient.update(info, docUpdate)
|
||||
|
||||
Reference in New Issue
Block a user