Cache top tracks
This commit is contained in:
@@ -7,7 +7,7 @@ module Admin
|
||||
include Deps["commands.posts.syndicate"]
|
||||
|
||||
def handle(req, res)
|
||||
syndicate.(post_id: req.params[:id], target: req.params[:target])
|
||||
syndicate.call(post_id: req.params[:id], target: req.params[:target])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -11,7 +11,7 @@ module Admin
|
||||
def call(post_id:, target:)
|
||||
post = post_repo.find(id: post_id)
|
||||
|
||||
dayone.(name: post[:name], content: post[:content]) if target.to_sym == :day_one
|
||||
dayone.call(name: post[:name], content: post[:content]) if target.to_sym == :day_one
|
||||
Success()
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user