mirror of
https://github.com/directus/directus.git
synced 2026-01-25 12:07:56 -05:00
Fix relation nullification on delete
This commit is contained in:
@@ -290,7 +290,7 @@ export default class CollectionsService {
|
||||
} else {
|
||||
await this.knex('directus_relations')
|
||||
.update({ one_field: null })
|
||||
.where({ one_collection: collection, field: relation.one_field });
|
||||
.where({ one_collection: collection, one_field: relation.one_field });
|
||||
await fieldsService.deleteField(relation.many_collection, relation.many_field);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user