SoftwareBrothers / adminjs-sequelizejs

Sequelizejs adapter for AdminBro
MIT License
27 stars 34 forks source link

sortBy is required in BaseResource.find [Sequelize] #91

Closed JSRossiter closed 2 years ago

JSRossiter commented 3 years ago

Pretty minor issue, but took me a while to track down. When using BaseResource.find I get the following error unless I provide a sortBy option.

TypeError: Cannot read property '_modelAttribute' of undefined

I'm only using sequelize so unsure if it affects other databases.

dziraf commented 2 years ago

sortBy should be set automatically to a default value though.