changed to es6 #14

Merged
jusax23 merged 2 commits from dev into main 2023-02-27 18:00:23 +01:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit cbac881a49 - Show all commits

View file

@ -101,7 +101,7 @@ export class selectQuery {
const builder = this.serialize(handler);
const s = handler.builders.query(builder);
let readResp = await db.query(s, printQuery);
return db.getHandler().responses.readResponse(readResp);
return handler.responses.readResponse(readResp);
}
}

View file

@ -15,7 +15,9 @@ export class singleResponse {
export class readResponse extends Array<singleResponse>{
constructor(rows: ({ [key: string]: primaryData })[]) {
super();
this.push(...rows.map(r => new singleResponse(r)));
for(let i = 0; i < rows.length; i++){
this[i] = new singleResponse(rows[i])
}
}
}