Use dictionary for db key

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
Cameron Diver 2019-01-23 16:30:43 +00:00
parent b978e2769a
commit 6a1e787eee
No known key found for this signature in database
GPG Key ID: 49690ED87032539F

View File

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