refactor: fix file condition checks

This commit is contained in:
wancat committed 2024-02-19 18:35:39 +08:00
1 parent 64215d3ef1
commit 4ab3096fa5
5 files changed
+16 -20

No files matched your search

+2 -2
View File
@@ -2,8 +2,8 @@ import { Schema } from 'mongoose'
export interface IFileCondition {
path: string
type?: string
exists?: boolean
type: string
exists: boolean
}
export interface ICondition {
+1
View File
@@ -5,6 +5,7 @@ export { Quest, IQuest } from './quest.js'
export { Session, ISession } from './session.js'
export { Command, ICommand } from './command.js'
export { UserProfile, IUserProfile } from './userProfile.js'
export { IFileCondition, ICondition } from './condition.js'
export default async function connectDB(uri: string) {
const db = await mongoose.connect(uri)