Standard rb fixes

This commit is contained in:
2023-10-31 08:17:10 +11:00
parent 1d43f6ca59
commit c1d756ec6f
9 changed files with 13 additions and 15 deletions

View File

@@ -8,9 +8,8 @@ module Admin
def handle(req, res)
add_syndication_source.call(post_id: req.params[:id],
source_name: req.params[:syndication_source_name],
source_url: req.params[:syndication_source_url]
)
source_name: req.params[:syndication_source_name],
source_url: req.params[:syndication_source_url])
res.status = 201
res.headers["HX-Refresh"] = true

View File

@@ -5,7 +5,7 @@ module Admin
include Deps["commands.posts.update"]
def handle(req, res)
update.(params: req.params)
update.call(params: req.params)
res.redirect "/admin/posts/#{req.params[:id]}"
end
end