Commit Graph

10 Commits

Author SHA1 Message Date
8cdfb6abfe
revert(db/models): re-add & Document to PopulatedDoc type parameters 2023-12-30 00:46:11 -05:00
c8e84c909e
style(*): cleanup unused imports 2023-12-29 20:11:07 -05:00
1447960b1a
refactor(db/models): update populatedDoc types
- remove `& Document` qualifier
- cast `T | number` to T with the `as` keyword
2023-12-29 19:06:55 -05:00
1412d39240
revert(db/models): revert guard removal
we need it after all lmao
2023-12-29 18:05:18 -05:00
a8e113e969
refactor(db/models): remove model existence guards
this way, plugins are registered if `hasMigrated` is true. we've already enabled automatically overwriting models, therefore, the guard's condition will always be false
2023-12-29 16:36:26 -05:00
ae8d34d84f
refactor(db/models): rename generateToken method to generateJWT 2023-12-20 19:56:33 -05:00
3e5af47107
refactor(*): refactor tsconfig paths
looks/feels nicer
2023-12-20 17:23:31 -05:00
2085131d5a
fix(db/models): only register counter plugin if model doesn't already exist 2023-10-12 22:28:37 -04:00
6598dfd3d6
refactor(db/models): add notifyOnReviewReply flag to user schema 2023-10-03 01:02:05 -04:00
7299471a52
refactor(db/models): add more models
(band, private message and user)
2023-09-25 19:41:32 -04:00