mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
fix: allow optional value by removing noError in SessionList
This commit is contained in:
1 parent
1e728b413b
commit
cce6127d51
1 file changed
+1
-5
@@ -10,11 +10,7 @@ const checkSessionStatus = () =>
|
||||
export const checkSessionId = () =>
|
||||
check('sessionId').notEmpty().isString().isMongoId()
|
||||
|
||||
export const sessionListValidator = [
|
||||
checkQuestId(),
|
||||
checkSessionStatus(),
|
||||
noError,
|
||||
]
|
||||
export const sessionListValidator = [checkQuestId(), checkSessionStatus()]
|
||||
export const sessionDetailValidator = [checkSessionId(), noError]
|
||||
export const createSessionValidator = [checkQuestId(), noError]
|
||||
export const activeSessionValidator = [checkQuestId(), noError]
|
||||
Reference in new issue
Block a user