Skip to content

Commit

Permalink
[fix]Fixed PlayyerInfo interface during initial registration
Browse files Browse the repository at this point in the history
  • Loading branch information
Rollphes committed Apr 2, 2024
1 parent f6cbb84 commit 2caafb9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "genshin-manager",
"version": "1.1.1",
"version": "1.1.2",
"homepage": "https://rollphes.github.io/genshin-manager/",
"bugs": "https://github.com/Rollphes/genshin-manager/issues",
"main": "dist/index.js",
Expand Down Expand Up @@ -59,20 +59,20 @@
"@types/cheerio": "^0.22.35",
"@types/cli-progress": "^3.11.5",
"@types/html-escaper": "^3.0.2",
"@types/node": "^20.11.30",
"@types/node": "^20.12.2",
"@types/node-cron": "^3.0.11",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jsdoc": "^48.2.1",
"eslint-plugin-jsdoc": "^48.2.2",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-simple-import-sort": "^12.0.0",
"prettier": "^3.2.5",
"ts-node": "^10.9.2",
"tsc-alias": "^1.8.8",
"tsconfig-paths": "^4.2.0",
"typedoc": "^0.25.12",
"typescript": "^5.4.2"
"typescript": "^5.4.3"
}
}
2 changes: 1 addition & 1 deletion src/models/enka/PlayerDetail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class PlayerDetail {
* @param data Data from EnkaNetwork
*/
constructor(data: APIPlayerInfo) {
this.nickname = data.nickname
this.nickname = data.nickname || ''
this.level = data.level
this.signature = data.signature || ''
this.worldLevel = data.worldLevel || 0
Expand Down
2 changes: 1 addition & 1 deletion src/types/enkaNetwork/EnkaTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface APIPlayerInfo {
/**
* Player Nickname
*/
nickname: string
nickname?: string
/**
* Player Adventure Level
*/
Expand Down

0 comments on commit 2caafb9

Please sign in to comment.