Handle deleting m2m

This commit is contained in:
Adria Navarro 2023-09-29 16:02:45 +02:00
parent dfea7f253e
commit bc6c6b9e80
1 changed files with 1 additions and 4 deletions

View File

@ -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],