colouring-montreal/app/src/api/services
mz8i c63f42f921
Refactor types and await for user/building backend (#476)
* Refactor buildings API for async/await, types

* Return building data after update

* Refactor users API for await, TS types

* Refactor building service to remove repetition

As part of this refactor, these changes in functionality were made:
- tx isolation lvl for save/like/unlike building is always serializable
- both reverse and forward patch updated for like/unlike
- comparing old and new data uses == instead of ===
 (this is because the new data even for numbers comes in as string)
- the checking of no data change in case of building unlike was fixed
 (didn't work because it re-used code for like which is different)

* Improve param order, docs for updateBuildingData
2019-10-21 15:19:35 +01:00
..
building.ts Refactor types and await for user/building backend (#476) 2019-10-21 15:19:35 +01:00
dataExtract.ts Handle case of no extracts available 2019-10-01 14:46:28 +01:00
email.ts Unify imports/export 2019-09-09 15:17:24 +01:00
passwordReset.ts Merge branch 'develop' into feature/342-bulk-extract 2019-09-30 15:06:01 +01:00
search.ts Move JSON API into its own directory 2019-08-14 10:54:13 +01:00
user.ts Refactor types and await for user/building backend (#476) 2019-10-21 15:19:35 +01:00