dimitrov-adrian / directus-extension-searchsync

Simple Directus 9 extension that sync content with remote search engine.
MIT License
115 stars 27 forks source link

Allow collections missing in config #16

Closed paltmey closed 2 years ago

paltmey commented 2 years ago

When not all directus collections are present in the config, the getCollectionIndexName function inside create-indexer.js throws an error when adding or updating items in these collections. In this pull request, I added checks to the action hooks that skip the handling of items, if the collection is missing in the config.

dimitrov-adrian commented 2 years ago

Thank you @paltmey