StandardRB
This commit is contained in:
@@ -9,7 +9,7 @@ module Admin
|
||||
bookmark = bookmark_repo.fetch(id: bookmark_id)
|
||||
|
||||
page_cacher.call(url: bookmark.url) do |content|
|
||||
bookmark_repo.update(id: bookmark_id, params: { cached_content: content })
|
||||
bookmark_repo.update(id: bookmark_id, params: {cached_content: content})
|
||||
end
|
||||
|
||||
Success()
|
||||
|
@@ -5,8 +5,8 @@ module Admin
|
||||
module Sessions
|
||||
class Create
|
||||
include Deps[
|
||||
"repos.login_tokens_repo",
|
||||
"repos.user_repo"
|
||||
"repos.login_tokens_repo",
|
||||
"repos.user_repo"
|
||||
]
|
||||
|
||||
def call(email:)
|
||||
@@ -37,7 +37,7 @@ module Admin
|
||||
body "#{app_settings.micropub_site_url}/admin/login/#{token.token}"
|
||||
end
|
||||
|
||||
mail[:to] = email
|
||||
mail[:to] = user.email
|
||||
mail[:from] = app_settings.from_email
|
||||
|
||||
mail.deliver
|
||||
|
@@ -12,13 +12,9 @@ module Admin
|
||||
return nil
|
||||
end
|
||||
|
||||
user_id = token.user_id
|
||||
|
||||
if user_id
|
||||
user_id
|
||||
end
|
||||
token.user_id
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user