fix(core): Fix workflow tagging failure due to unique constraint check (#8505)

This commit is contained in:
Iván Ovejero
2024-02-02 12:36:55 +01:00
committed by GitHub
parent cccdfc73d6
commit 92f939f827
3 changed files with 101 additions and 4 deletions

View File

@@ -166,10 +166,7 @@ export class WorkflowService {
);
if (tagIds && !config.getEnv('workflowTagsDisabled')) {
await this.workflowTagMappingRepository.delete({ workflowId });
await this.workflowTagMappingRepository.insert(
tagIds.map((tagId) => ({ tagId, workflowId })),
);
await this.workflowTagMappingRepository.overwriteTaggings(workflowId, tagIds);
}
if (workflow.versionId !== shared.workflow.versionId) {