Fix creation
This commit is contained in:
parent
70689c0369
commit
9e0d003038
|
@ -741,6 +741,7 @@ export class ExternalRequest {
|
|||
table,
|
||||
},
|
||||
}
|
||||
|
||||
// can't really use response right now
|
||||
const response = await getDatasourceAndQuery(json)
|
||||
// handle many to many relationships now if we know the ID (could be auto increment)
|
||||
|
|
|
@ -415,9 +415,7 @@ class InternalBuilder {
|
|||
if (opts.disableReturning) {
|
||||
return query.insert(parsedBody)
|
||||
} else {
|
||||
return query
|
||||
.insert(parsedBody)
|
||||
.returning(generateSelectStatement(json, knex))
|
||||
return query.insert(parsedBody).returning("*")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue