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