This commit is contained in:
KillerBossOriginal 2023-12-09 19:24:02 +01:00
parent ff7c42eeb2
commit 7999a59d1d
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "tn-api.js",
"version": "0.4.1",
"version": "0.4.2",
"description": "A Public Template for npm",
"main": "build/index.js",
"repository": "https://source.thundernetwork.org/ThunderNetworkRaD/tn-api.js",
@ -9,6 +9,7 @@
"type": "module",
"scripts": {
"build": "tsc",
"publish": "npm run build && npm publish",
"test": "yarn build && node build/test.js"
},
"dependencies": {

View file

@ -12,6 +12,6 @@ export default class IAManager {
async get(id: number) {
let req = await axios.get(`${this.URL}/IA/${id}`);
if (req.status == 404) throw new Error("User not Found");
return req.data;
return req.data.user;
}
}