Update knex types

Change-type: patch
This commit is contained in:
Pagan Gazzard 2020-01-17 13:56:31 +00:00
parent 1a393dbb19
commit 027701297b
3 changed files with 5 additions and 5 deletions

6
package-lock.json generated
View File

@ -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": "*",

View File

@ -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",

View File

@ -47,7 +47,7 @@ export class DB {
public upsertModel(
modelName: string,
obj: any,
id: number | Dictionary<unknown>,
id: Dictionary<unknown>,
trx?: Knex.Transaction,
): Bluebird<any> {
const knex = trx || this.knex;