Fix postgres update for relationships
This commit is contained in:
parent
b65e39bb22
commit
1ada790d50
|
@ -502,9 +502,7 @@ class InternalBuilder {
|
||||||
if (opts.disableReturning) {
|
if (opts.disableReturning) {
|
||||||
return query.update(parsedBody)
|
return query.update(parsedBody)
|
||||||
} else {
|
} else {
|
||||||
return query
|
return query.update(parsedBody).returning("*")
|
||||||
.update(parsedBody)
|
|
||||||
.returning(generateSelectStatement(json, knex))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue