mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
Load and update quests on startup
This commit is contained in:
1 parent
b2173d180d
commit
3637d41529
3 files changed
+33
-7
No files matched your search
@@ -1,12 +1,13 @@
|
||||
import { model } from 'mongoose'
|
||||
import { Schema } from 'yaml'
|
||||
import { model, Schema } from 'mongoose'
|
||||
|
||||
const Quest = model(
|
||||
'Quest',
|
||||
new Schema(
|
||||
{
|
||||
name: String,
|
||||
description: String,
|
||||
title: String,
|
||||
order: Number,
|
||||
content: String,
|
||||
},
|
||||
{ timestamp: true }
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user