Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Unhide music festival '24 badge #133

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/src/adapters/badge-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function createBadgeService({
}

function getAllBadges(): Badge[] {
return Array.from(badges.values()).filter((badge) => badge.id !== BadgeId.MUSIC_FESTIVAL_2024)
return Array.from(badges.values())
}

async function getUserStates(address: EthAddress) {
Expand Down
2 changes: 1 addition & 1 deletion api/test/unit/adapters/badge-service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('Badge Service', () => {
describe('getAllBadges', () => {
it('should return an array with all the badges definitions', async () => {
const allBadges = badgeService.getAllBadges()
const allExpectedBadges = Array.from(badgeStorage.getBadges().values()).filter((badge) => badge.id !== BadgeId.MUSIC_FESTIVAL_2024)
const allExpectedBadges = Array.from(badgeStorage.getBadges().values())

expect(allBadges).toStrictEqual(allExpectedBadges)
})
Expand Down
2 changes: 1 addition & 1 deletion api/test/unit/logic/backfill-merger.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe('Backfill Merger', () => {
[BadgeId.LAND_ARCHITECT, mergeLandArchitectProgress],
[BadgeId.PROFILE_PRO, mergeProfileProProgress],
[BadgeId.OPEN_FOR_BUSINESS, mergeOpenForBusinessProgress],
// [BadgeId.MUSIC_FESTIVAL, mergeUniqueEventProgress]
[BadgeId.MUSIC_FESTIVAL_2024, mergeUniqueEventProgress]
])('should merge the progress for the user when the badge id is %s', (badgeId: BadgeId, merger: jest.Mock) => {
const mergerMock = merger as jest.Mock

Expand Down
Loading