1
0
Fork 0
mirror of synced 2024-10-05 12:34:50 +13:00

Handle deleting m2m

This commit is contained in:
Adria Navarro 2023-09-29 16:02:45 +02:00
parent dfea7f253e
commit bc6c6b9e80

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