fixed id for knex call (#105)
* fixed id for knex call * other fixes for breaking changes in knex api
This commit is contained in:
@@ -82,7 +82,7 @@ ORDER BY keywords.value
|
||||
const res = await this.knex('keywords')
|
||||
.insert({ value: name })
|
||||
.returning('id');
|
||||
const keywordId = res[0];
|
||||
const keywordId = res[0].id;
|
||||
|
||||
if (type) {
|
||||
const typeRes = await this.knex
|
||||
|
||||
Reference in New Issue
Block a user