# Patron was added to the group but no badge?

**URL:** <https://meta.discourse.org/t/patron-was-added-to-the-group-but-no-badge/145117>\
**Category:** Support\
**Tags:** patreon\
**Created:** [March 22, 2020, 7:44am UTC](https://meta.discourse.org/t/patron-was-added-to-the-group-but-no-badge/145117 "2020-03-22T07:44:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Queth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/queth/32/154753_2.png) [@Queth](https://meta.discourse.org/u/Queth)\
**Post date:** [March 22, 2020, 7:44am UTC](https://meta.discourse.org/t/patron-was-added-to-the-group-but-no-badge/145117/1 "2020-03-22T07:44:34Z")

</div>

Hello, first of all, thank you plugin creators for making this!

My first Patron has made their pledge, and was added to the patron group, but didn’t get the badge I created. I checked the query for the badge and changed it to the group name (since I didn’t name that group Patrons), but that didn’t solve it…  
What do I need to do?  
Thank you for your help!

---

<div class="post-metadata">

**Author:** ![Mark\_Schmucker](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mark_schmucker/32/124810_2.png) [@Mark\_Schmucker](https://meta.discourse.org/u/Mark_Schmucker)\
**Post date:** [March 22, 2020, 8:03am UTC](https://meta.discourse.org/t/patron-was-added-to-the-group-but-no-badge/145117/2 "2020-03-22T08:03:00Z")

</div>

The badge job runs once a day, so it will take up to a day to get the badge. To hurry it along, go to [example.com/sidekiq/scheduler](http://example.com/sidekiq/scheduler), search for BadgeGrant, and hit Trigger.

---

<div class="post-metadata">

**Author:** ![Queth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/queth/32/154753_2.png) [@Queth](https://meta.discourse.org/u/Queth)\
**Post date:** [March 23, 2020, 8:05am UTC](https://meta.discourse.org/t/patron-was-added-to-the-group-but-no-badge/145117/4 "2020-03-23T08:05:43Z")

</div>

Thank you @Mark_Schmucker for your fast response and help, I did what you said, also waited a day to be sure… but still no badge ☹  
I checked in badge cp and did the test query, then it also says that no badges will be awarded.. so something else is going on…

---

<div class="post-metadata">

**Author:** ![Mark\_Schmucker](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mark_schmucker/32/124810_2.png) [@Mark\_Schmucker](https://meta.discourse.org/u/Mark_Schmucker)\
**Post date:** [March 23, 2020, 10:54pm UTC](https://meta.discourse.org/t/patron-was-added-to-the-group-but-no-badge/145117/5 "2020-03-23T22:54:41Z")

</div>

Post your query or experiment in [Data Explorer](https://meta.discourse.org/t/32566?silent=true)?

---

<div class="post-metadata">

**Author:** ![Queth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/queth/32/154753_2.png) [@Queth](https://meta.discourse.org/u/Queth)\
**Post date:** [March 25, 2020, 5:17pm UTC](https://meta.discourse.org/t/patron-was-added-to-the-group-but-no-badge/145117/6 "2020-03-25T17:17:01Z")

</div>

This is the query, it’s the one the patreon plugin created for the badges. the only thing i changed the name of the group in `supporters` instead of `patreon`.

```plaintext
select user_id, created_at granted_at, NULL post_id from group_users where group_id = ( select g.id from groups g where g.name = 'supporters' )
```

and it returns 0 cases. Should be 1 🙂

---

<div class="post-metadata">

**Author:** ![Mark\_Schmucker](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mark_schmucker/32/124810_2.png) [@Mark\_Schmucker](https://meta.discourse.org/u/Mark_Schmucker)\
**Post date:** [March 28, 2020, 12:24am UTC](https://meta.discourse.org/t/patron-was-added-to-the-group-but-no-badge/145117/7 "2020-03-28T00:24:12Z")

</div>

I use the same query for many badges, by just changing the group name. Works for me. Use the group “Name”, not “Full Name”. Does the query work with other groups?

---

<div class="post-metadata">

**Author:** ![Queth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/queth/32/154753_2.png) [@Queth](https://meta.discourse.org/u/Queth)\
**Post date:** [April 1, 2020, 5:58pm UTC](https://meta.discourse.org/t/patron-was-added-to-the-group-but-no-badge/145117/8 "2020-04-01T17:58:15Z")

</div>

Ok.. facepalm time once again… the name is case sensitive… didn’t realize that. Also at first I confused the badge name with the group name… (since they both had the same name). And then I discovered it case sensitive… it now returns that it grants to 1 user 🙂 Thank you for helping me solve it! 🙂

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [April 2, 2020, 4:49am UTC](https://meta.discourse.org/t/patron-was-added-to-the-group-but-no-badge/145117/9 "2020-04-02T04:49:18Z")

</div>

> [@Queth](#):
>
> the name is case sensitive

Which name? We need to stamp out all needless case sensitivity..

---

<div class="post-metadata">

**Author:** ![Queth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/queth/32/154753_2.png) [@Queth](https://meta.discourse.org/u/Queth)\
**Post date:** [April 14, 2020, 5:53am UTC](https://meta.discourse.org/t/patron-was-added-to-the-group-but-no-badge/145117/10 "2020-04-14T05:53:42Z")

</div>

@codinghorror Sorry I just see this now, it was the group name.

---

<div class="post-metadata">

**Author:** ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Post date:** [April 14, 2020, 6:40pm UTC](https://meta.discourse.org/t/patron-was-added-to-the-group-but-no-badge/145117/11 "2020-04-14T18:40:54Z")

</div>


