Skip to content

Commit dd4f873

Browse files
committed
Fixing incorrect reference in factory
1 parent 7fd65d2 commit dd4f873

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/services/cms/providers/strapi/factories/email_content_factory.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ module EmailContentFactory
77
def self.generate_component(component_name, strapi_data)
88
case component_name
99
when "text"
10-
EmailComponents::Text.new(
10+
Models::EmailComponents::Text.new(
1111
blocks: strapi_data[:textContent]
1212
)
1313
when "cta"
14-
EmailComponents::Cta.new(
14+
Models::EmailComponents::Cta.new(
1515
text: strapi_data[:text],
1616
link: strapi_data[:link]
1717
)
1818
when "course-list"
19-
EmailComponents::CourseList.new(
19+
Models::EmailComponents::CourseList.new(
2020
section_title: strapi_data[:sectionTitle],
2121
remove_on_match: strapi_data[:removeOnMatch],
2222
courses: strapi_data[:courses].map do |course|
23-
EmailComponents::Course.new(
23+
Models::EmailComponents::Course.new(
2424
activity_code: course[:activityCode],
2525
substitute: course[:substitute],
2626
display_name: course[:displayName]

0 commit comments

Comments
 (0)