Fix postgres update for relationships

This commit is contained in:
adrinr 2023-02-21 15:21:00 +00:00
parent b65e39bb22
commit 1ada790d50
1 changed files with 1 additions and 3 deletions

View File

@ -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("*")
}
}