quest get-started

This commit is contained in:
Chen, Tai-Lin committed 2023-11-23 14:37:08 +08:00
1 parent c6e49a10be
commit c42c558614
16 files changed
+274 -273

No files matched your search

+1 -1
View File
@@ -2,6 +2,6 @@ import { check } from 'express-validator'
import { noError } from '../../middleware/validator.js'
export const checkQuestId = () =>
check('questId').notEmpty().isString().isAlphanumeric().isLength({ max: 64 })
check('questId').notEmpty().isString().isLowercase().isLength({ max: 64 })
export const questIdValidator = [checkQuestId(), noError]