evershopcommerce / evershop

🛍️ NodeJS E-commerce Platform
https://evershop.io/
GNU General Public License v3.0
4.27k stars 1.17k forks source link

[BUG] query.and is not a function #573

Closed leandrosantoss closed 2 weeks ago

leandrosantoss commented 3 months ago

Describe the bug When finalizing the purchase, you need the order_created and order_placed events, but the error below was displayed.

Uncaught TypeError TypeError: query.and is not a function at loadEvents (c:\Users\lpdsa\Documents\Projetos\SquidTech\Git\ecommerce\node_modules\@evershop\evershop\src\lib\event\event-manager.js:73:11) at (c:\Users\lpdsa\Documents\Projetos\SquidTech\Git\ecommerce\node_modules\@evershop\evershop\src\lib\event\event-manager.js:38:29) at listOnTimeout (internal/timers:573:17) at processTimers (internal/timers:514:7)

Expected behavior I need the events (order_created and order_placed). The event was not generated

Screenshots image

image

Background (please complete the following information):

leandrosantoss commented 3 months ago

Hi @treoden

I believe it should be query.andWhere('uuid', 'NOT IN', []) Not?