Run rubocop on all files

This commit is contained in:
2023-06-08 21:57:54 +10:00
parent 6a2bc82e3b
commit 9d9d8ccf6d
65 changed files with 114 additions and 158 deletions

View File

@@ -9,8 +9,8 @@ module Admin
Failure() if !title_contains.empty? && !body_contains.empty?
result = auto_tagging_repo.create(title_contains: title_contains,
body_contains: body_contains,
tag_id: tag_id)
body_contains: body_contains,
tag_id: tag_id)
Success(result.id)
end

View File

@@ -7,10 +7,10 @@ module Admin
def call(auto_tag_id: nil)
auto_taggings = if auto_tag_id
auto_tagging_repo.find(auto_tag_id)
else
auto_tagging_repo.all
end
auto_tagging_repo.find(auto_tag_id)
else
auto_tagging_repo.all
end
auto_taggings.each do |auto_tagging|
posts = auto_tagging.title_only? ?
@@ -19,7 +19,7 @@ module Admin
posts.each do |post|
post_repo.tag_post(post_id: post.id,
tag_id: auto_tagging.tag_id)
tag_id: auto_tagging.tag_id)
end
end

View File

@@ -8,7 +8,7 @@ module Admin
include Dry::Monads[:result]
include Deps["repos.bookmark_repo"]
def call(bookmark_id: )
def call(bookmark_id:)
bookmark = bookmark_repo.fetch(id: bookmark_id)
bookmark.url

View File

@@ -4,7 +4,6 @@ module Admin
module Commands
module Movies
class Create
include Deps["repos.movie_repo"]
def call(movie)
@@ -20,8 +19,7 @@ module Admin
repo.create(movie)
end
end
end
end
end
end
end