Skip to content

Commit

Permalink
[Wow] Update achievements implementation based on core updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Pewtro committed Mar 29, 2024
1 parent 7388a3b commit 190f5e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/light-bears-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@blizzard-api/wow': patch
---

Update achievements implementation based on core updates
8 changes: 4 additions & 4 deletions packages/wow/src/achievements/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,25 @@ export const achievements = {
namespace: 'static',
};
},
achievementCategoryIndex: (): Resource => {
achievementCategoryIndex: (): Resource<void> => {
return {
path: `${achievementCategoryBase}/index`,
namespace: 'static',
};
},
achievement: (achievementId: number): Resource => {
achievement: (achievementId: number): Resource<void> => {
return {
path: `${achievementBase}/${achievementId}`,
namespace: 'static',
};
},
achievementIndex: (): Resource => {
achievementIndex: (): Resource<void> => {
return {
path: `${achievementBase}/index`,
namespace: 'static',
};
},
media: (achievementId: number): Resource => {
media: (achievementId: number): Resource<void> => {
return { path: `${mediaBase}/achievement/${achievementId}`, namespace: 'static' };
},
};

0 comments on commit 190f5e7

Please sign in to comment.