# Why didn't I receive the Gives back badge?

**URL:** <https://meta.discourse.org/t/why-didnt-i-receive-the-gives-back-badge/44240>\
**Category:** Product Support\
**Created:** [14. Mai 2016 um 14:33 UTC](https://meta.discourse.org/t/why-didnt-i-receive-the-gives-back-badge/44240 "2016-05-14T14:33:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [14. Mai 2016 um 14:58 UTC](https://meta.discourse.org/t/why-didnt-i-receive-the-gives-back-badge/44240/2 "2016-05-14T14:58:06Z")

</div>

> [@steko](#):
>
> a bug somewhere in the badge machinery

Possibly.

More likely due due another reason.

Has the job ran since passing the threshold?

Were all of the Likes in Categories that granted badges? i.e. the setting  
“Allow badges to be awarded in this category”  
\* note, messages don’t have a category

If you prefer code the query is

```sql
SELECT us.user_id, current_timestamp AS granted_at
FROM user_stats AS us
INNER JOIN posts AS p ON p.user_id = us.user_id
WHERE p.like_count > 0
  AND us.likes_given >= 100
  AND (:backfill OR us.user_id IN (:user_ids))
GROUP BY us.user_id, us.likes_given
HAVING COUNT(*) > 100

```

And the setting is

> Trigger  
> Update daily

---

_[View the full topic](https://meta.discourse.org/t/why-didnt-i-receive-the-gives-back-badge/44240)._
