We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ff2789e + 281a919 commit 9cd9f6cCopy full SHA for 9cd9f6c
1 file changed
app/validators/log.js
@@ -11,10 +11,6 @@ class LogFindValidator extends PaginateValidator {
11
}
12
13
validateStart (data) {
14
- // 如果前端未传入query参数,则query为undifined,不能直接取start
15
- if (!data.query) {
16
- return true;
17
- }
18
const start = data.query.start;
19
// 如果 start 为可选
20
if (isOptional(start)) {
0 commit comments