From b3f9917b0fc20d78fb08d015ca65c9388414094b Mon Sep 17 00:00:00 2001 From: Harminder virk <virk.officials@gmail.com> Date: Sat, 18 Apr 2020 13:21:46 +0530 Subject: [PATCH] improvement: use toSQL method directly, since knex has added it to their types --- src/Schema/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Schema/index.ts b/src/Schema/index.ts index dcbe9e11..331060ea 100644 --- a/src/Schema/index.ts +++ b/src/Schema/index.ts @@ -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