Skip to content

Commit

Permalink
chore: hide Music Festival Badge
Browse files Browse the repository at this point in the history
  • Loading branch information
aleortega committed Nov 18, 2024
1 parent d27b71c commit 0203942
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
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())
return Array.from(badges.values()).filter((badge) => badge.id !== BadgeId.MUSIC_FESTIVAL_2024)
}

async function getUserStates(address: EthAddress) {
Expand Down
2 changes: 1 addition & 1 deletion api/src/logic/backfill-merger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export function createBackfillMergerComponent({
badgeService.getBadge(BadgeId.OPEN_FOR_BUSINESS),
backfillData
)
case BadgeId.MUSIC_FESTIVAL:
case BadgeId.MUSIC_FESTIVAL_2024:
return mergeUniqueEventProgress(
userAddress,
currentUserProgress,
Expand Down
2 changes: 1 addition & 1 deletion common/src/types/badge-definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export enum BadgeId {
LAND_ARCHITECT = 'land_architect',
EMOTE_CREATOR = 'emote_creator',
WEARABLE_DESIGNER = 'wearable_designer',
MUSIC_FESTIVAL = 'music_festival_2024'
MUSIC_FESTIVAL_2024 = 'music_festival_2024'
}

export enum BadgeCategory {
Expand Down
4 changes: 2 additions & 2 deletions common/src/types/badges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,9 @@ const badges: Map<BadgeId, Badge> = new Map<BadgeId, Badge>([
}
],
[
BadgeId.MUSIC_FESTIVAL,
BadgeId.MUSIC_FESTIVAL_2024,
{
id: BadgeId.MUSIC_FESTIVAL,
id: BadgeId.MUSIC_FESTIVAL_2024,
name: 'Decentraland Music Festival 2024',
category: BadgeCategory.EXPLORER,
description: 'Jumped in and attended Decentraland Music Festival 2024',
Expand Down

0 comments on commit 0203942

Please sign in to comment.