Commit c388a6d0 authored by Hsinli's avatar Hsinli

addd

parent 3185c388
Pipeline #8859 passed with stage
in 13 seconds
...@@ -12,7 +12,7 @@ class QuestionController extends Controller { ...@@ -12,7 +12,7 @@ class QuestionController extends Controller {
let inputParams = ctx.request.body; let inputParams = ctx.request.body;
const rule = { const rule = {
question: { type: 'string', required: true }, question: { type: 'string', required: true },
city_code: { type: 'string', required: true }, city_code: { type: 'integer', required: true },
}; };
ctx.validate(rule, inputParams); ctx.validate(rule, inputParams);
if (inputParams.question.length > 100) { if (inputParams.question.length > 100) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment