refactor: container

This commit is contained in:
wancat committed 2024-02-19 18:23:52 +08:00
1 parent 075e21fb89
commit 64215d3ef1
7 files changed
+128 -24

No files matched your search

+3 -3
View File
@@ -1,10 +1,10 @@
import mongoose from 'mongoose'
export { User } from './user.js'
export { User, IUser } from './user.js'
export { Quest, IQuest } from './quest.js'
export { Session } from './session.js'
export { Session, ISession } from './session.js'
export { Command, ICommand } from './command.js'
export { UserProfile } from './userProfile.js'
export { UserProfile, IUserProfile } from './userProfile.js'
export default async function connectDB(uri: string) {
const db = await mongoose.connect(uri)
+1 -1
View File
@@ -44,7 +44,7 @@ const taskSchema = new Schema<ITask>({
export interface ISession {
user: Types.ObjectId
quest: string
containerId: string
containerId: string | null
status: string
createdAt: Date
updatedAt: Date