sails-elasticsearch icon indicating copy to clipboard operation
sails-elasticsearch copied to clipboard

Sails rejected Multiple adapters

Open hankphung opened this issue 8 years ago • 3 comments

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)

hankphung avatar Oct 06 '16 04:10 hankphung

Any news here?

obrunsmann avatar Feb 02 '17 13:02 obrunsmann

I've run into the same issue...

yellowandy avatar Feb 13 '17 21:02 yellowandy

Looks like this was introduced with https://github.com/balderdashy/sails-hook-orm/commit/bd8fdb1677be04343964d6ab6a21a2d7e274e477

yellowandy avatar Feb 13 '17 21:02 yellowandy