Skip to content

Commit

Permalink
improvement: use toSQL method directly, since knex has added it to th…
Browse files Browse the repository at this point in the history
…eir types
  • Loading branch information
thetutlage committed Apr 18, 2020
1 parent f697a38 commit b3f9917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Schema/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class Schema implements SchemaContract {
if (typeof (trackedCall) === 'function') {
await trackedCall(this.db)
} else {
const queries = trackedCall['toSQL']()
const queries = trackedCall.toSQL()
const reporter = new QueryReporter(this.db, { queries, connection: this.db.connectionName }).begin()
try {
await trackedCall
Expand Down

0 comments on commit b3f9917

Please sign in to comment.