cognovi-ai / the-cdj

The Cognitive Distortion Journal (CDJ) is a smart journaling tool that helps remedy distorted thinking. It can feel impossible to follow the CBT technique of labeling and reframing distorted thinking when you've been thinking this way your whole life. The CDJ can help with that 🧠✨ -- v2 is in development!
https://thecdj.app
4 stars 0 forks source link

refactor: create AccountServices module and refactor getAccount #194

Open davidzlu opened 6 days ago

davidzlu commented 6 days ago

This PR:

There was a tsc error where the user type in the passport and and passport-local-mongoose modules didn't match. I realized this was caused by the way Express.User was getting defined in our custom type declaration file. I changed it so that Express.User extends our UserType in models to resolve the build error.