directus-labs / directus-template-cli

Apply "templates" to a new, empty Directus project.
MIT License
88 stars 15 forks source link

delete presets before loading new ones #32

Closed alexvdvalk closed 1 year ago

alexvdvalk commented 1 year ago

cleaner approach to my previous fix.

The issue starts because presets are created while the admin logs in and creates a static token.

This update adds an additional function which removes all exsting presets before loading the template.