mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
refactor: fix file condition checks
This commit is contained in:
1 parent
64215d3ef1
commit
4ab3096fa5
5 files changed
+16
-20
No files matched your search
@@ -2,8 +2,8 @@ import { Schema } from 'mongoose'
|
||||
|
||||
export interface IFileCondition {
|
||||
path: string
|
||||
type?: string
|
||||
exists?: boolean
|
||||
type: string
|
||||
exists: boolean
|
||||
}
|
||||
|
||||
export interface ICondition {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user