mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 02:16:22 +00:00
hacer una sola consulta
friendly_id primero busca por nombre y despues por id
This commit is contained in:
parent
893d79f7fd
commit
20f5acacb8
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class BacktraceJob < ApplicationJob
|
|||
private
|
||||
|
||||
def site
|
||||
@site ||= Site.find(site_id)
|
||||
@site ||= Site.find_by_id(site_id)
|
||||
end
|
||||
|
||||
# Obtiene todos los archivos del backtrace
|
||||
|
|
Loading…
Reference in a new issue