Run rubocop on all files
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user