Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -29,7 +29,7 @@ exports.register = async(ctx) => { | ... | @@ -29,7 +29,7 @@ exports.register = async(ctx) => { |
29 | userNm : Joi.string().required(), | 29 | userNm : Joi.string().required(), |
30 | birth : Joi.string().required(), | 30 | birth : Joi.string().required(), |
31 | contact : Joi.string().required(), | 31 | contact : Joi.string().required(), |
32 | - deviceToken : Joi.string(), | 32 | + deviceToken : Joi.string().allow(null), |
33 | }); | 33 | }); |
34 | 34 | ||
35 | const result = schema.validate(ctx.request.body); | 35 | const result = schema.validate(ctx.request.body); |
... | @@ -219,7 +219,7 @@ exports.login = async(ctx) => { | ... | @@ -219,7 +219,7 @@ exports.login = async(ctx) => { |
219 | const schema = Joi.object().keys({ | 219 | const schema = Joi.object().keys({ |
220 | userId : Joi.string().email().max(50).required(), | 220 | userId : Joi.string().email().max(50).required(), |
221 | password : Joi.string().required(), | 221 | password : Joi.string().required(), |
222 | - deviceToken : Joi.string(), | 222 | + deviceToken : Joi.string().allow(null), |
223 | }); | 223 | }); |
224 | 224 | ||
225 | const result = schema.validate(ctx.request.body); | 225 | const result = schema.validate(ctx.request.body); | ... | ... |
-
Please register or login to post a comment