Daily badge isn't being awarded

(Bas van Leeuwen) #1

Does anyone have an idea why this badge isn’t being handed out to my manager every day?
(this is a poc to test my badge-coding skills, but yeah, I’m failing)

If I run the preview granted badges option, it properly shows up.
Other (stock) badges are being granted

SELECT ue.user_id, current_timestamp AS granted_at
FROM user_emails ue
WHERE ue.primary = true
AND ue.email= '***@***.com'