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