Tag merging UI

This commit is contained in:
2023-05-07 22:15:37 +10:00
parent 9ef9eda41c
commit 8038da9107
14 changed files with 154 additions and 4 deletions

View File

@@ -0,0 +1,17 @@
module Admin
module Commands
module MergeTags
class Merge
include Dry::Monads[:result]
include Deps["repos.post_tag_repo", "repos.tag_repo"]
def call(target_id:, source_id:)
post_tag_repo.merge_tags(target_id: target_id, source_id: source_id)
tag_repo.delete(tag_id: source_id)
Success()
end
end
end
end
end