Skip to content

Commit

Permalink
Revert changes to already applied migration
Browse files Browse the repository at this point in the history
  • Loading branch information
youngkidwarrior committed Oct 18, 2024
1 parent 08df3e2 commit 9075755
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@ SELECT
BOOL_OR(bc.type = 'send_one_hundred'::public.verification_type) AS has_send_one_hundred,
BOOL_OR(bc.type = 'create_passkey'::public.verification_type) AS has_create_passkey,
jsonb_object_agg(bc.type, jsonb_build_object('value', CASE WHEN bc.type_count = 0 THEN
1
WHEN bc.type = 'total_tag_referrals'::public.verification_type THEN
LEAST(dvv.multiplier_min +((bc.total_referrals) * dvv.multiplier_step), dvv.multiplier_max)
ELSE
LEAST(dvv.multiplier_min +((bc.type_count - 1) * dvv.multiplier_step), dvv.multiplier_max)
0
ELSE
-- @todo double check that when count = 1, this value = min
LEAST(dvv.multiplier_min +(bc.type_count - 1) * dvv.multiplier_step, dvv.multiplier_max)
END, 'multiplier_min', dvv.multiplier_min, 'multiplier_max', dvv.multiplier_max, 'multiplier_step', dvv.multiplier_step)) AS multipliers
FROM
base_counts bc
Expand Down

0 comments on commit 9075755

Please sign in to comment.