senecajs / seneca-entity

Entity plugin for seneca
MIT License
13 stars 15 forks source link

Default Memstore not loading in assumed order #23

Closed mcdonnelldean closed 8 years ago

mcdonnelldean commented 8 years ago

@rjrodger

@mihaidma and I did some investigation. It seems trying to load memstore as we are now in the body of the plugin is not working correctly. It loads after the next plugin. The effect of this can be seen in seneca-user and seneca-auth failing tests. To fix, simply add MemStore to the tests.

The desired behaviour can be fixed by instead loading MemStore in the preload function of the plugin but in that case options are lost.

To resolve the current break we need to:

What are your thoughts on this?

rjrodger commented 8 years ago

PR #24 should fix this