Skip to content

Commit f0ca090

Browse files
committed
Fix more small type errors from TS 3.3
1 parent 26537f9 commit f0ca090

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/datastore/drivers/mysql/MySQLStore.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ export class MySQLStore implements Process, SQLStore {
2424
if (this.connection) {
2525
try {
2626
// @ts-ignore
27-
let queryResult = await promisify(this.connection.query)(
27+
let queryResult = await promisify(
28+
this.connection.query.bind(this.connection)
29+
)(
2830
queryString,
2931
parameters
3032
)

src/logging/drivers/AggregateLogger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class AggregateLogger extends Logger implements Process {
2020
} else {
2121
return memo
2222
}
23-
}, true)
23+
}, true as boolean)
2424
}
2525

2626
public async shutdown(container: Container): Promise<void> {

0 commit comments

Comments
 (0)