Handle deleting m2m
This commit is contained in:
parent
dfea7f253e
commit
bc6c6b9e80
|
@ -836,10 +836,7 @@ export class ExternalRequest<T extends Operation> {
|
||||||
// can't really use response right now
|
// can't really use response right now
|
||||||
const response = await getDatasourceAndQuery(json)
|
const response = await getDatasourceAndQuery(json)
|
||||||
// handle many to many relationships now if we know the ID (could be auto increment)
|
// handle many to many relationships now if we know the ID (could be auto increment)
|
||||||
if (
|
if (operation !== Operation.READ) {
|
||||||
operation !== Operation.READ &&
|
|
||||||
processed.manyRelationships?.length > 0
|
|
||||||
) {
|
|
||||||
await this.handleManyRelationships(
|
await this.handleManyRelationships(
|
||||||
table._id || "",
|
table._id || "",
|
||||||
response[0],
|
response[0],
|
||||||
|
|
Loading…
Reference in New Issue