mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-07 18:27:44 +02:00
UBERF-7944: Support for not_planed close for issues (#6396)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -204,7 +204,9 @@ export class ReviewThreadSyncManager implements DocSyncManager {
|
||||
case 'resolved':
|
||||
case 'unresolved': {
|
||||
const isResolved = event.action === 'resolved'
|
||||
const reviewData = await this.client.findOne(github.class.DocSyncInfo, { url: event.thread.node_id })
|
||||
const reviewData = await this.client.findOne(github.class.DocSyncInfo, {
|
||||
url: event.thread.node_id.toLocaleLowerCase()
|
||||
})
|
||||
|
||||
if (reviewData !== undefined) {
|
||||
const reviewObj: GithubReviewThread | undefined = await this.client.findOne<GithubReviewThread>(
|
||||
@@ -225,12 +227,12 @@ export class ReviewThreadSyncManager implements DocSyncManager {
|
||||
},
|
||||
lastModified
|
||||
)
|
||||
await this.client.update(
|
||||
await this.client.diffUpdate(
|
||||
reviewObj,
|
||||
{
|
||||
isResolved
|
||||
isResolved,
|
||||
resolvedBy: account
|
||||
},
|
||||
false,
|
||||
lastModified,
|
||||
account
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user