chore: Fix emails being sent with the wrong translations (#2236)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
@@ -43,12 +43,12 @@ class ::EmailTemplates::DbResolverService < ActionView::Resolver
|
||||
handler = ActionView::Template.registered_template_handler(:liquid)
|
||||
|
||||
template_details = {
|
||||
locals: [],
|
||||
format: Mime['html'].to_sym,
|
||||
updated_at: @db_template.updated_at,
|
||||
virtual_path: virtual_path(path, partial)
|
||||
}
|
||||
|
||||
[ActionView::Template.new(@db_template.body, "DB Template - #{@db_template.id}", handler, template_details)]
|
||||
[ActionView::Template.new(@db_template.body, "DB Template - #{@db_template.id}", handler, **template_details)]
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user