Showing
1 changed file
with
1 additions
and
1 deletions
| ... | ... | @@ -42,7 +42,7 @@ module Kanjai |
| 42 | 42 | domain_title = "#{request.subdomain}.#{domain_title}" |
| 43 | 43 | end |
| 44 | 44 | |
| 45 | - $domain = Domain.where(title: request.domain).first | |
| 45 | + $domain = Domain.where(title: domain_title).first | |
| 46 | 46 | |
| 47 | 47 | if $domain.nil? |
| 48 | 48 | render plain: 'Domain Not Exist' and return | ... | ... |