mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-03 12:34:11 +00:00
Update knex types
Change-type: patch
This commit is contained in:
parent
1a393dbb19
commit
027701297b
6
package-lock.json
generated
6
package-lock.json
generated
@ -336,9 +336,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/knex": {
|
"@types/knex": {
|
||||||
"version": "0.14.26",
|
"version": "0.15.2",
|
||||||
"resolved": "https://registry.npmjs.org/@types/knex/-/knex-0.14.26.tgz",
|
"resolved": "https://registry.npmjs.org/@types/knex/-/knex-0.15.2.tgz",
|
||||||
"integrity": "sha512-BhtEH5PbB2kxuAwZ1w+KDNyL5NZXjTfoT6JtwnD3P/l3bqJJISCOAfPeH8O2aY66auscNIaCvIij/eONvlM4Cw==",
|
"integrity": "sha512-mw8OT8v+FK0SsgDdmio2XSkEM/yLD7ybFtiqW7I65EDTlr2aZtG+p9FhryErpNJDJ2FEXgQhe3JVBG0Gh7YbvQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@types/bluebird": "*",
|
"@types/bluebird": "*",
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
"@types/dockerode": "^2.5.21",
|
"@types/dockerode": "^2.5.21",
|
||||||
"@types/event-stream": "^3.3.34",
|
"@types/event-stream": "^3.3.34",
|
||||||
"@types/express": "^4.17.2",
|
"@types/express": "^4.17.2",
|
||||||
"@types/knex": "^0.14.14",
|
"@types/knex": "^0.15.2",
|
||||||
"@types/lockfile": "^1.0.1",
|
"@types/lockfile": "^1.0.1",
|
||||||
"@types/lodash": "^4.14.149",
|
"@types/lodash": "^4.14.149",
|
||||||
"@types/memoizee": "^0.4.3",
|
"@types/memoizee": "^0.4.3",
|
||||||
|
@ -47,7 +47,7 @@ export class DB {
|
|||||||
public upsertModel(
|
public upsertModel(
|
||||||
modelName: string,
|
modelName: string,
|
||||||
obj: any,
|
obj: any,
|
||||||
id: number | Dictionary<unknown>,
|
id: Dictionary<unknown>,
|
||||||
trx?: Knex.Transaction,
|
trx?: Knex.Transaction,
|
||||||
): Bluebird<any> {
|
): Bluebird<any> {
|
||||||
const knex = trx || this.knex;
|
const knex = trx || this.knex;
|
||||||
|
Loading…
Reference in New Issue
Block a user