Epilogue getting a where 0 = 1 clause added to its findAndCountAll in it's liist controller

271 views
Skip to first unread message

Mark Lester

unread,
Apr 11, 2016, 11:41:47 AM4/11/16
to Sequelize
i went from 3.19 to 3.21. epilogue now ends up having a where 0 =1 added to the findAndCountAll.
so none of the gets work.
Any guesses as to why that is getting added so I can have a go at working out what we need to do in epilogue.


Mick Hansen

unread,
Apr 11, 2016, 1:01:12 PM4/11/16
to Mark Lester, Sequelize
The behaviour of `$or: []` was changed to better reflect the actual intent.
epilogue is probably using $or in some way, a beforeFind hook removing empty $or's will revert to the original way of doing it.
--
Mick Hansen
@mhansendev
mhansen.io
Reply all
Reply to author
Forward
0 new messages