Fix deletion of collection that has custom permissions

This commit is contained in:
rijkvanzanten
2020-08-31 17:43:33 -04:00
parent 9d361a0457
commit 4b1fae8d0f

View File

@@ -242,6 +242,7 @@ export default class CollectionsService {
await this.knex('directus_presets').delete().whereIn('collection', collectionKeys);
await this.knex('directus_revisions').delete().whereIn('collection', collectionKeys);
await this.knex('directus_activity').delete().whereIn('collection', collectionKeys);
await this.knex('directus_permissions').delete().whereIn('collection', collectionKeys);
await this.knex('directus_relations')
.delete()