Add return select statement back on update

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

View File

@ -502,7 +502,9 @@ class InternalBuilder {
if (opts.disableReturning) { if (opts.disableReturning) {
return query.update(parsedBody) return query.update(parsedBody)
} else { } else {
return query.update(parsedBody).returning("*") return query
.update(parsedBody)
.returning(generateSelectStatement(json, knex))
} }
} }