UBERF-5108 Fix attachments creation in issues (#4460)

Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2024-01-26 14:54:47 +07:00 committed by GitHub
parent b461e3bb09
commit a26adb5252
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -412,9 +412,6 @@
tag: label.tag
})
}
await descriptionBox.createAttachments(_id)
await operations.commit()
if (relatedTo !== undefined) {
const doc = await client.findOne(tracker.class.Issue, { _id })
@ -427,6 +424,11 @@
}
}
}
await operations.commit()
await descriptionBox.createAttachments(_id)
addNotification(
await translate(tracker.string.IssueCreated, {}, $themeStore.language),
getTitle(object.title),