Fix duplicated fields in the JSON data
This commit is contained in:
12
server/dist/index.js
vendored
12
server/dist/index.js
vendored
@ -46,7 +46,9 @@ class FE_Charts {
|
||||
static getAllCharactersGrowthRates() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let charactersGrowRates = null;
|
||||
yield CharacterGrowthRate.findAll().then(results => {
|
||||
yield CharacterGrowthRate.findAll({
|
||||
attributes: ["value", "idCharacter", "idStat"]
|
||||
}).then(results => {
|
||||
charactersGrowRates = results;
|
||||
}).catch(err => FE_Charts.logError(err));
|
||||
return charactersGrowRates;
|
||||
@ -55,7 +57,9 @@ class FE_Charts {
|
||||
static getAllClassesGrowthRates() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let classesGrowRates = null;
|
||||
yield ClassGrowthRate.findAll().then(results => {
|
||||
yield ClassGrowthRate.findAll({
|
||||
attributes: ["value", "idClass", "idStat"]
|
||||
}).then(results => {
|
||||
classesGrowRates = results;
|
||||
}).catch(err => FE_Charts.logError(err));
|
||||
return classesGrowRates;
|
||||
@ -95,7 +99,9 @@ class FE_Charts {
|
||||
static getAllRestrictedClasses() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let restrictedClasses = null;
|
||||
yield RestrictedCharacterClass.findAll().then(results => {
|
||||
yield RestrictedCharacterClass.findAll({
|
||||
attributes: ["idClass", "idCharacter"]
|
||||
}).then(results => {
|
||||
restrictedClasses = results;
|
||||
}).catch(err => FE_Charts.logError(err));
|
||||
return restrictedClasses;
|
||||
|
2
server/dist/index.js.map
vendored
2
server/dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@ -39,7 +39,9 @@ abstract class FE_Charts {
|
||||
|
||||
static async getAllCharactersGrowthRates() {
|
||||
let charactersGrowRates = null;
|
||||
await CharacterGrowthRate.findAll().then(results => {
|
||||
await CharacterGrowthRate.findAll({
|
||||
attributes: ["value", "idCharacter", "idStat"]
|
||||
}).then(results => {
|
||||
charactersGrowRates = results
|
||||
}).catch(err => FE_Charts.logError(err));
|
||||
return charactersGrowRates;
|
||||
@ -47,7 +49,9 @@ abstract class FE_Charts {
|
||||
|
||||
static async getAllClassesGrowthRates() {
|
||||
let classesGrowRates = null;
|
||||
await ClassGrowthRate.findAll().then(results => {
|
||||
await ClassGrowthRate.findAll({
|
||||
attributes: ["value", "idClass", "idStat"]
|
||||
}).then(results => {
|
||||
classesGrowRates = results
|
||||
}).catch(err => FE_Charts.logError(err));
|
||||
return classesGrowRates;
|
||||
@ -83,7 +87,9 @@ abstract class FE_Charts {
|
||||
|
||||
static async getAllRestrictedClasses() {
|
||||
let restrictedClasses = null;
|
||||
await RestrictedCharacterClass.findAll().then(results => {
|
||||
await RestrictedCharacterClass.findAll({
|
||||
attributes: ["idClass", "idCharacter"]
|
||||
}).then(results => {
|
||||
restrictedClasses = results
|
||||
}).catch(err => FE_Charts.logError(err));
|
||||
return restrictedClasses;
|
||||
|
Reference in New Issue
Block a user