mirror of
https://github.com/System-End/identity-vault.git
synced 2026-04-19 23:22:50 +00:00
fix reveal
This commit is contained in:
parent
03537aeb8e
commit
61519852bd
2 changed files with 2 additions and 2 deletions
|
|
@ -62,7 +62,7 @@ module OnboardingScenarios
|
|||
when "flavortown_agree" then :taste_test
|
||||
when "flavortown_taste_correct" then { step: :promoted, promote: true }
|
||||
when /\Aflavortown_retry_[wt]\d+\z/ then :taste_retry
|
||||
when "flavortown_try_again" then :taste_retry
|
||||
when "flavortown_try_again" then :taste_reveal
|
||||
when /\Aflavortown_final_[wt]\d+\z/ then :taste_reveal
|
||||
when /\Aflavortown_terrible_t\d+\z/ then :taste_terrible
|
||||
when "flavortown_dino_nuggets" then :dino_nuggets
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ module RalseiEngine
|
|||
promote_user(identity) if result[:promote]
|
||||
send_step(identity, result[:step]) if result[:step]
|
||||
send_message(identity, result[:template]) if result[:template]
|
||||
identity.increment!(:promote_click_count, 1) if result[:promote]
|
||||
end
|
||||
|
||||
true
|
||||
|
|
@ -77,7 +78,6 @@ module RalseiEngine
|
|||
end
|
||||
|
||||
scenario&.after_promotion
|
||||
identity.increment!(:promote_click_count, 1)
|
||||
Rails.logger.info "RalseiEngine: promoted #{identity.public_id}"
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue