Skip to content

Commit c2805f1

Browse files
committed
Use a number for missing user id
1 parent d7622c2 commit c2805f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/commands/user/bootcamp/subscribe_to_onboarding_emails.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def add_subscriber!
3030
"price": bootcamp_data.price,
3131
"has_discount": bootcamp_data.has_discount?,
3232
"discount_percentage": bootcamp_data.discount_percentage,
33-
"user_id": bootcamp_data.user_id,
33+
"user_id": bootcamp_data.user_id || 0,
3434
"access_code": bootcamp_data.access_code
3535
}
3636
},

0 commit comments

Comments
 (0)