diff --git a/package-lock.json b/package-lock.json index d7f06702..ff5ae3b1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -336,9 +336,9 @@ "dev": true }, "@types/knex": { - "version": "0.14.26", - "resolved": "https://registry.npmjs.org/@types/knex/-/knex-0.14.26.tgz", - "integrity": "sha512-BhtEH5PbB2kxuAwZ1w+KDNyL5NZXjTfoT6JtwnD3P/l3bqJJISCOAfPeH8O2aY66auscNIaCvIij/eONvlM4Cw==", + "version": "0.15.2", + "resolved": "https://registry.npmjs.org/@types/knex/-/knex-0.15.2.tgz", + "integrity": "sha512-mw8OT8v+FK0SsgDdmio2XSkEM/yLD7ybFtiqW7I65EDTlr2aZtG+p9FhryErpNJDJ2FEXgQhe3JVBG0Gh7YbvQ==", "dev": true, "requires": { "@types/bluebird": "*", diff --git a/package.json b/package.json index bde1b9c9..d7ed95a8 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "@types/dockerode": "^2.5.21", "@types/event-stream": "^3.3.34", "@types/express": "^4.17.2", - "@types/knex": "^0.14.14", + "@types/knex": "^0.15.2", "@types/lockfile": "^1.0.1", "@types/lodash": "^4.14.149", "@types/memoizee": "^0.4.3", diff --git a/src/db.ts b/src/db.ts index 9e4c3a7c..3e63744c 100644 --- a/src/db.ts +++ b/src/db.ts @@ -47,7 +47,7 @@ export class DB { public upsertModel( modelName: string, obj: any, - id: number | Dictionary, + id: Dictionary, trx?: Knex.Transaction, ): Bluebird { const knex = trx || this.knex;