sails-elasticsearch
sails-elasticsearch copied to clipboard
Sails rejected Multiple adapters
Info: Sails 0.12.4
connection: ['mongoDB', 'elasticServer'],
elasticSerch: {
...
- error: A hook (
orm
) failed to load! - error: Error: One of your models (
product
) refers to multiple datastores. Please set its configured datastore to a string instead of an array in its model definition (.connection
) or the app-wide default (sails.config.models.connection
)
Any news here?
I've run into the same issue...
Looks like this was introduced with https://github.com/balderdashy/sails-hook-orm/commit/bd8fdb1677be04343964d6ab6a21a2d7e274e477