Commit Graph

9 Commits

Author SHA1 Message Date
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
3e5af47107
refactor(*): refactor tsconfig paths
looks/feels nicer
2023-12-20 17:23:31 -05:00
9dbf0548d7
refactor(db/models): remove existence guard/check from models 2023-12-06 21:28:51 -05:00
722368c707
fix(db/models): short-circuit story model definition + plugin load 2023-12-01 18:01:16 -05:00
2085131d5a
fix(db/models): only register counter plugin if model doesn't already exist 2023-10-12 22:28:37 -04:00
9fe4d0c979
feat(db/models): add co-author field to stories 2023-10-03 01:11:32 -04:00
1db9bdec9c
refactor(db/models): add new story models 2023-09-25 19:19:32 -04:00