Skip to content

Commit

Permalink
Update subscribe widget check by type (#2163)
Browse files Browse the repository at this point in the history
  • Loading branch information
jadmsaadaot authored Sep 11, 2023
1 parent f815483 commit f5394e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion met-api/src/met_api/services/cac_form_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def create_form_submission(engagement_id, widget_id, form_data):
if widget.engagement_id != engagement_id:
raise ValueError('Form belongs to another engagement')

widget_subscribe = WidgetSubscribeModel.get_all_by_type(SubscribeTypes.EMAIL_LIST.name, widget_id)
widget_subscribe = WidgetSubscribeModel.get_all_by_type(SubscribeTypes.SIGN_UP.name, widget_id)

if not widget_subscribe:
raise ValueError('Form not found for this engagement')
Expand Down

0 comments on commit f5394e2

Please sign in to comment.