[solved] Badges 'update daily' won't trigger

/sidekiq/scheduler : Jobs::BadgeGrant FAILED
/logs:
Job exception: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint “index_user_badges_on_badge_id_and_user_id_and_seq”
DETAIL: Key (badge_id, user_id, seq)=(104, 1, 0) already exists.

Thanks, problem solved (by adding DISTINCT ON for user_id of another badge)