mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-22 12:22:23 +02:00
Cloud collaborator refactoring (#6424)
This commit is contained in:
@@ -372,16 +372,7 @@ export abstract class IssueSyncManagerBase {
|
||||
!areEqualMarkups(update.description, syncData.current?.description ?? '')
|
||||
) {
|
||||
try {
|
||||
const versionId = `${Date.now()}`
|
||||
issueData.description = await this.collaborator.updateContent(
|
||||
doc.description,
|
||||
{ description: update.description },
|
||||
{
|
||||
versionId,
|
||||
versionName: versionId,
|
||||
createdBy: account
|
||||
}
|
||||
)
|
||||
await this.collaborator.updateContent(doc.description, { description: update.description })
|
||||
} catch (err: any) {
|
||||
Analytics.handleError(err)
|
||||
this.ctx.error(err)
|
||||
@@ -926,17 +917,8 @@ export abstract class IssueSyncManagerBase {
|
||||
workspace: this.provider.getWorkspaceId().name
|
||||
})
|
||||
try {
|
||||
const versionId = `${Date.now()}`
|
||||
issueData.description = update.description
|
||||
update.description = await this.collaborator.updateContent(
|
||||
existingIssue.description,
|
||||
{ description: update.description },
|
||||
{
|
||||
versionId,
|
||||
versionName: versionId,
|
||||
createdBy: account
|
||||
}
|
||||
)
|
||||
await this.collaborator.updateContent(existingIssue.description, { description: update.description })
|
||||
} catch (err: any) {
|
||||
Analytics.handleError(err)
|
||||
this.ctx.error('error during description update', err)
|
||||
|
||||
Reference in New Issue
Block a user