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
|
||||
const response = await getDatasourceAndQuery(json)
|
||||
// handle many to many relationships now if we know the ID (could be auto increment)
|
||||
if (
|
||||
operation !== Operation.READ &&
|
||||
processed.manyRelationships?.length > 0
|
||||
) {
|
||||
if (operation !== Operation.READ) {
|
||||
await this.handleManyRelationships(
|
||||
table._id || "",
|
||||
response[0],
|
||||
|
|
Loading…
Reference in New Issue