Fixed model registration
This commit is contained in:
1 parent
492a54dd0d
commit
e02cb83235
4 files changed
+6
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import { randomUUID } from "node:crypto"
|
||||
import mongoose, { Schema, type Model } from "mongoose"
|
||||
import "./user"
|
||||
|
||||
export function getSessionModel(sessionTtlMs: number) {
|
||||
if (mongoose.models.Session) return mongoose.models.Session as Model<any>
|
||||
|
||||
Reference in new issue
Block a user