Cache top tracks

This commit is contained in:
2023-06-12 16:48:37 +10:00
parent a50018f712
commit e075e6e3ef
7 changed files with 62 additions and 7 deletions

View File

@@ -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

View File

@@ -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