Load and update quests on startup

This commit is contained in:
wancat committed 2023-07-20 15:08:47 +08:00
1 parent b2173d180d
commit 3637d41529
3 files changed
+33 -7

No files matched your search

+4 -3
View File
@@ -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 }
)