fix(core): Fix workflow tagging failure due to unique constraint check (#8505)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user