diff options
author | Marvin Borner | 2020-07-18 23:48:04 +0200 |
---|---|---|
committer | Marvin Borner | 2020-07-18 23:48:04 +0200 |
commit | 781f0baee0a6514fd57b4f964344febd32bc45d1 (patch) | |
tree | dbdd62e12c897f14fa6271a4f8fa3cd8763bdd8a /src/db/DBController.ts | |
parent | accb147b54bc99e5cd20059be5cb333031f15885 (diff) |
Fiiiiiixxxxx! (or sth)
Co-authored-by: LarsVomMars <lars@kroenner.eu>
Diffstat (limited to 'src/db/DBController.ts')
-rw-r--r-- | src/db/DBController.ts | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/db/DBController.ts b/src/db/DBController.ts index 1bb91ba..cb714b3 100644 --- a/src/db/DBController.ts +++ b/src/db/DBController.ts @@ -33,19 +33,17 @@ export default class DBController { } } - async query(query: string, params?: (boolean | number | any)[]) { + async query(query: string, params?: (boolean | number | string)[]) { if (!this.client) await this.connect(); try { - const res = await this.client!.query(query, params); - console.log(res); - return res; + return await this.client!.query(query, params); } catch (e) { throw e; } } - async execute(query: string, params?: (boolean | number | any)[]) { + async execute(query: string, params?: (boolean | number | string)[]) { if (!this.client) await this.connect(); try { @@ -55,7 +53,7 @@ export default class DBController { } } - async execute_multiple(queries: ((boolean | number | any)[] | string)[][]) { + async execute_multiple(queries: ((boolean | number | string)[] | string)[][]) { if (!this.client) await this.connect(); try { |