Skip to content

Commit

Permalink
fix(sanity): adds the group field to the Achievement class
Browse files Browse the repository at this point in the history
  • Loading branch information
KenEucker committed Jan 5, 2024
1 parent 9eebe68 commit a1c99f3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "biketag",
"version": "3.2.5",
"version": "3.2.6",
"description": "The Javascript client API for BikeTag Games",
"main": "./biketag.node.js",
"browser": "./biketag.js",
Expand Down
1 change: 1 addition & 0 deletions src/common/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ export const createAchievementObject = (
name: achievementData.name ?? '',
key: achievementData.key ?? '',
value: achievementData.value ?? '',
group: achievementData.value ?? '',
} as Achievement
}
export const achievementDataFields = Object.keys(createAchievementObject())
1 change: 1 addition & 0 deletions src/common/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export type Achievement = {
description: string
key: string
value: string
group: string
}

export type Region = {
Expand Down

0 comments on commit a1c99f3

Please sign in to comment.