Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.

Commit 594c4b4

Browse files
committed
Fix badge IDs
1 parent 4889be2 commit 594c4b4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/DonationManager/launcher.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,20 @@ function append_to_log($str) {
7070
continue;
7171
}
7272

73+
// WARNING: when updating badge IDs, check for correct ID (not MongoDB-style IDs!) 🚨
74+
7375
if(!in_array('Iscrizione', $badges)) {
74-
launchBadgeAssigner($assignBadge, $conn, $donorEmail, 'Iscrizione', '2021', 'socio/2021', '5fa4604d33e12a00752f934c');
76+
launchBadgeAssigner($assignBadge, $conn, $donorEmail, 'Iscrizione', '2021', 'socio/2021', 'aHUuFKcAQ_OYGoHJJcvKJg');
7577
}
7678

7779
if($amount >= 1000 && !in_array('DonatoreSponsor', $badges)) {
78-
launchBadgeAssigner($assignBadge, $conn, $donorEmail, 'DonatoreSponsor', '2021', 'sponsor/2021', '5fa4635bf6731e70e1b574ca');
80+
launchBadgeAssigner($assignBadge, $conn, $donorEmail, 'DonatoreSponsor', '2021', 'sponsor/2021', 'I68nUBXKTRC8EOec6C1vwQ');
7981
}
8082
else if($amount >= 100 && !in_array('SostenitoreGold', $badges)) {
81-
launchBadgeAssigner($assignBadge, $conn, $donorEmail, 'SostenitoreGold', '2021', 'sostenitoregold/2021', '5fa4632933e12a00752f95a7');
83+
launchBadgeAssigner($assignBadge, $conn, $donorEmail, 'SostenitoreGold', '2021', 'sostenitoregold/2021', 'BQg_Fv8VTnOFVns0wChU-A');
8284
}
8385
else if($amount >= 50 && !in_array('Sostenitore', $badges)) {
84-
launchBadgeAssigner($assignBadge, $conn, $donorEmail, 'Sostenitore', '2021', 'sostenitore/2021', '5fa462e433e12a00752f952b');
86+
launchBadgeAssigner($assignBadge, $conn, $donorEmail, 'Sostenitore', '2021', 'sostenitore/2021', 'LM-Ho_4tTcqtLIpd5n7p8Q');
8587
}
8688
}
8789
append_to_log("...done.");

0 commit comments

Comments
 (0)