fixed id for knex call (#105)

* fixed id for knex call

* other fixes for breaking changes in knex api
This commit is contained in:
Arwid Thornström
2022-02-15 09:20:12 +01:00
committed by GitHub
parent 0685902d9f
commit 3d7a36afc4
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -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