workarea-commerce / workarea-api

Adds JSON REST APIs to the Workarea Commerce Platform
https://www.workarea.com
Other
7 stars 1 forks source link

Move creation of date filtering indexes to after initialize #29

Closed mttdffy closed 3 years ago

mttdffy commented 3 years ago

The DateFiltering module that the admin API adds to ApplicationDocument could cause some indexes on created_at or updated_at to be ignored unexpectedly since DateFiltering had already added indexes for those fields. Moving the creation of those indexes to after initialization ensures the model can define its own indexes first.

API-17