mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(core): Validate commit content for project admin role (#15687)
Co-authored-by: Guillaume Jacquart <jacquart.guillaume@gmail.com>
This commit is contained in:
@@ -26,6 +26,12 @@ export async function createTag(attributes: Partial<TagEntity> = {}, workflow?:
|
||||
return tag;
|
||||
}
|
||||
|
||||
export async function updateTag(tag: TagEntity, attributes: Partial<TagEntity>) {
|
||||
const tagRepository = Container.get(TagRepository);
|
||||
const updatedTag = tagRepository.merge(tag, attributes);
|
||||
return await tagRepository.save(updatedTag);
|
||||
}
|
||||
|
||||
export async function assignTagToWorkflow(tag: TagEntity, workflow: WorkflowEntity) {
|
||||
const mappingRepository = Container.get(WorkflowTagMappingRepository);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user