habitica/test/api/v4
Phillip Thelen 8150fef993
Database Access optimisations (#14544)
* Optimize database access during spell casting

* load less data when casting spells

* Begin migrating update calls to updateOne and updateMany

* Only update user objects that don’t have notification yet

* fix test

* fix spy

* Don’t unnecessarily update user when requesting invalid guild

* fix sort order for middlewares to not load user twice every request

* fix tests

* fix integration test

* fix skill usage not always deducting mp

* addtest case for blessing spell

* fix healAll

* fix lint

* Fix error for when some spells are used outside of party

* Add check to not run bulk spells in web client

* fix(tags): change const to let

---------

Co-authored-by: SabreCat <sabe@habitica.com>
2023-05-16 12:21:45 -05:00
..
coupon Adminpanel and revamped permissions (#13843) 2022-05-03 14:40:56 -05:00
faq Refactor FAQ (#14372) 2022-12-15 11:34:07 -06:00
inbox fix: return full inbox on user-v3-api (#12146) 2020-05-02 21:48:16 +02:00
members Adminpanel and revamped permissions (#13843) 2022-05-03 14:40:56 -05:00
news Adminpanel and revamped permissions (#13843) 2022-05-03 14:40:56 -05:00
tasks Add API Call to bulk score tasks (#11389) 2020-08-21 11:46:56 +02:00
user Database Access optimisations (#14544) 2023-05-16 12:21:45 -05:00
POST-bug-report.test.js Feature: new "report a bug" modal (#13530) 2021-12-14 19:16:50 -06:00